Smart Account Event
Events emitted by the Smart Account Kit during wallet lifecycle operations.
These events provide hooks for monitoring and responding to key operations:
Wallet connection and disconnection
Credential lifecycle (creation, deletion)
Transaction lifecycle (signing, submission)
Session management (expiration)
Example:
kit.events.addListener { event ->
when (event) {
is SmartAccountEvent.WalletConnected ->
println("Connected to ${event.contractId}")
is SmartAccountEvent.TransactionSubmitted ->
println("Transaction ${event.hash} submitted")
else -> {}
}
}Inheritors
Types
Emitted when a new credential is created (passkey registered).
Emitted when a credential is deleted from storage.
Emitted when a wallet is connected headlessly (by contract address only, with no passkey credential). Used by backends and autonomous signers that operate via the multi-signer / external-signer pipeline.
Emitted when a session expires during connection attempt.
Emitted when a transaction is signed.
Emitted when a transaction is submitted to the network.
Emitted when a wallet is connected.
Emitted when a wallet is disconnected.