Quickstart
Integrate private token transfers into your Android app in a few minutes.
Installation
The SDK is published to Maven Central. Add to your build.gradle.kts:
dependencies {
implementation("io.hinkal:hinkal-android:0.1.0")
}import io.hinkal.mobile.MobileQuick Example
1. Implement the host wallet
class WalletHost(private val wallet: YourWalletImplementation) : HostWallet {
override fun address(): String = wallet.address
override fun chainID(): Long = wallet.chainId
override fun personalSign(message: String): String = wallet.personalSign(message)
override fun sendTransaction(toHex: String, dataHex: String, valueDec: String, gasLimit: Long): String =
wallet.sendTransaction(toHex, dataHex, valueDec, gasLimit)
override fun switchChain(chainID: Long) = wallet.switchChain(chainID)
}2. Connect and use the SDK
Jetpack Compose Example
Last updated