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 -> {}
}
}Content copied to clipboard
Inheritors
Types
Link copied to clipboard
Emitted when a new credential is created (passkey registered).
Link copied to clipboard
Emitted when a credential is deleted from storage.
Link copied to clipboard
Emitted when a session expires during connection attempt.
Link copied to clipboard
Emitted when a transaction is signed.
Link copied to clipboard
Emitted when a transaction is submitted to the network.
Link copied to clipboard
Emitted when a wallet is connected.
Link copied to clipboard
Emitted when a wallet is disconnected.