DecaneDocs
Get startedQuick start
Get started

Quick start

1. Create the wallet

Create one DecaneWallet per process and keep it, for example in your Application.

kotlinApp.kt
import app.decane.kit.DecaneConfig
import app.decane.kit.DecaneWallet
import app.decane.kit.Protection

val wallet = DecaneWallet.create(
    context,
    DecaneConfig(
        appId = "proj_…",
        apiKey = "dck_live_…",
        chains = listOf("evm:8453", "solana:mainnet", "tron:mainnet"),
        protection = Protection.IDENTITY,   // the tier this version implements
    ),
)

2. Sign the user in

kotlin
lifecycleScope.launch {
    wallet.connectWithEmail("ada@example.com")
    val result = wallet.verifyEmailCode("ada@example.com", "123456")

    result.addresses.evm      // the same addresses the web SDK shows
    result.addresses.solana
    result.addresses.tron
    result.isNewUser
}

Every call is suspend and can be made from any dispatcher: the core runs on its own threads.

3. Sign

kotlin
val signature = wallet.signMessage("evm:8453", "hello")