Skip to main content

Quickstart

This is the minimal integration path: initialize SDK services, unlock wallet material, and perform one signing action.

1) Initialize SDK

val sdk = BlockchainKitSdk(/* platform config */)

2) Choose an unlock strategy

val unlock = UnlockStrategy.Pin("123456")

You can swap to UnlockStrategy.Passkey(...) or UnlockStrategy.Password(...) later without changing the high-level flow.

3) Run your first signing flow

val result = sdk.blockchain.sign(
payload = payloadBytes,
unlockStrategy = unlock,
)

result.onSuccess { signature ->
println("Signature: ${signature.toHexString()}")
}.onFailure { error ->
println("Sign failed: ${error.message}")
}

4) What to do next