Get started
Quick start
1. Create the wallet
Create one DecaneWallet for the app and keep it.
swiftWallet.swift
import DecaneKit
let wallet = try DecaneWallet(config: DecaneConfig(
appId: "proj_…",
apiKey: "dck_live_…",
chains: ["evm:8453", "solana:mainnet", "tron:mainnet"],
protection: .identity // the tier this version implements
))2. Sign the user in
swift
try await wallet.connectWithEmail("user@example.com")
let result = try await wallet.verifyEmailCode(email: "user@example.com", code: "123456")
result.addresses.evm // the same addresses the web SDK shows
result.addresses.solana
result.addresses.tron
result.isNewUserA first sign-in creates the wallet in the enclave before the session opens; a returning user gets a fresh device share for the wallet they already have.
3. Sign
swift
let signature = try await wallet.signMessage(chain: "evm:8453", text: "Hello")On the next launch, try await wallet.connect() resumes a session that is still live. See Sessions and launch.