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

Quick 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

MethodPurpose
depositPublic to private
withdrawPrivate to public
transferPrivate to private
swapPrivate swap
bridgePrivateToPrivatePrivate to private across chains
getTotalBalanceShielded balance
getRecipientInfoPrivate address for the identity

Documentation

Getting Started

Guides

Advanced

Reference

Requirements

  • minSdk 21
  • ABIs: arm64-v8a, x86_64

Related

  • iOS SDK