Hinkal Mobile SDK
Android SDK
Native Kotlin library for private token transfers with Hinkal.
The Android SDK is the Hinkal Go core compiled to a native .aar with gomobile and published to Maven Central as io.hinkal:hinkal-android. Your app calls Kotlin methods; the SDK handles the proofs, UTXOs, and relaying. Signing stays in your app - the private key never leaves the device wallet.
Features
- Published to Maven Central, one Gradle line to add
- Deposit, withdraw, transfer, swap, and bridge from the private balance
- Host wallet delegate for EVM, Solana, and TRON signing
- JSON-string boundary, so lists batch in a single call
- Feature parity with the iOS SDK
Installation
implementation("io.hinkal:hinkal-android:0.1.3")import io.hinkal.mobile.MobileQuick Example
val client = Mobile.newClient()
val address = client.connect(WalletHost(yourWallet))
val hinkal = client.hinkal()
val wei = Mobile.amountToWei(chainId, tokenAddress, "1.0")
val result = hinkal.deposit(
chainId,
"[\"$tokenAddress\"]",
"[\"$wei\"]",
true,
false,
)Core Operations
| Method | Purpose |
|---|---|
deposit | Public to private |
withdraw | Private to public |
transfer | Private to private |
swap | Private swap |
bridgePrivateToPrivate | Private to private across chains |
getTotalBalance | Shielded balance |
getRecipientInfo | Private address for the identity |
Documentation
Getting Started
Guides
Advanced
Reference
Requirements
- minSdk 21
- ABIs:
arm64-v8a,x86_64
Related
- iOS SDK