For the complete documentation index, see llms.txt. This page is also available as Markdown.

Quickstart

Integrate private token transfers into your Android app in a few minutes.

This quickstart gets you running fast with minimal explanation. For a detailed walkthrough see Android Getting Started; for the full method list see Android API Reference.

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.Mobile

Quick 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