Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

@AndroidEntryPoint class SomeModel(context: Context) { val dappMetadata = DappMetadata("Droid Dapp", "https://www.droiddapp.io") // To use the Infura API to make read-only requests, specify your Infura API key using the // infuraAPIKey option in SDKOptions. val infuraAPIKey = 3fb88cfd23fc490986fca887dd598945 // To use your own node (for example, with Hardhat) to make read-only requests, specify your // node's chain ID and RPC URL using the readonlyRPCMap option in SDKOptions. val readonlyRPCMap = mapOf("0x1" to "https://www.testrpc.com") // Use callbacks. val ethereum = Ethereum(context, dappMetadata, SDKOptions(infuraAPIKey, readonlyRPCMap)) // This is the same as calling eth_requestAccounts. ethereum.connect() { result -> when (result) { is Result.Error -> { Logger.log("Ethereum connection error: ${result.error.message}") } is Result.Success.Item -> { Logger.log("Ethereum connection result: ${result.value}") } #16

@abedsand

Description

@abedsand
No description provided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions