Skip to main content

Interface: SDKEventPayloads

Defined in: types.ts:125

Payload types for each SDKEvent.

Use this map to understand what data each event delivers to its callback.

Example

sdk.on('accountChanged', (account) => {
// `account` is typed as WalletAccount
console.log(account.address);
});

Properties

PropertyTypeDescriptionDefined in
accountChangedWalletAccountFired when the user switches the active account inside the wallet.types.ts:135
connectanyFired when connection starts ({ status: 'connecting' }) or completes (full ConnectResult).types.ts:127
disconnect{ reason?: string; }Fired when the wallet session ends.types.ts:129
disconnect.reason?string-types.ts:129
errorErrorFired on unrecoverable errors (e.g., iframe communication failure).types.ts:133
lock{ reason?: string; }Fired when the wallet is locked by the user or due to inactivity. Also triggers a disconnect event.types.ts:131
lock.reason?string-types.ts:131
reconnecting{ isReconnecting: boolean; }Fired when a silent auto-reconnect attempt starts or ends.types.ts:137
reconnecting.isReconnectingboolean-types.ts:137