c8.on(event, handler).
Event reference
Fires when the user approves the connection in the popup. Payload:
{ meta?: Json }.Fires when
disconnect() is called or the popup is closed. Payload: { reason?: string, meta?: Json }.Fires when balances or holdings change. Payload:
{ accounts: AccountInfoPayload[], meta?: Json }.Fires when a transaction request is initiated. Payload:
{ txId?: string, meta?: Json }.Fires when a transaction’s completion status updates. Payload:
{ txId: string, status: "pending" | "confirmed" | "failed" | string, meta?: Json }.Fires when the wallet interface changes its UI display theme. Payload:
{ theme: "dark" | "light", meta?: Json }.Fires when an action or modal interface is explicitly rejected by the user. Payload:
{ reason: string, meta?: Json }.Unsubscribing from events
Theon() method returns an unsubscribe function. Call it to remove the listener.
