Overview
Smart Account Kit emits events for key lifecycle moments. Usekit.events to subscribe, handle one-time events, or clean up listeners.
Available Events
| Event | Payload | Description |
|---|---|---|
walletConnected | { contractId: string } | Fired when connected to a wallet |
walletDisconnected | {} | Fired on disconnect |
credentialCreated | { credentialId: string } | Fired when a passkey is registered |
credentialDeleted | { credentialId: string } | Fired when a credential is removed |
sessionExpired | {} | Fired when the session expires |
transactionSigned | { transaction: ... } | Fired after auth entries are signed |
transactionSubmitted | { hash: string; success: boolean } | Fired after submission |