Android SDK
1. Kotlin Coroutines
To add the WalletSDK to your app, please add this snippet of code to your settings.gradle.kts file:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
}
}Then just add to the project-level build.gradle & in the app-level build.gradle, like this:
// Web3j needed for the WalletSDK
implementation 'org.web3j:core:4.9.4'
implementation 'com.github.EthereumPhone:WalletSDK:0.2.0'// Web3j needed for the WalletSDK
implementation("org.web3j:core:4.9.4")
implementation("com.github.EthereumPhone:WalletSDK:0.1.0")You can check whether the system-wallet is on the dGEN1 by checking getSystemService("wallet") != null.
How to initialize the SDK:
How to get the dGEN1 wallet address:
How to sign a message:
How to send a single transaction:
How to send a multi-action transaction:
That’s all you should need to know for Coroutines. You should now be able to reference the system wallet to do transactions within your app!
If there are any other questions please feel free to reach out in our discord, or message me on telegram at @mhaas_eth.
Last updated