Skip to Content
Packages@tuwaio/satellite-coreType AliasesConnectedCallback<W>

ConnectedCallback<W>

ConnectedCallback<W> = (connector) => void | Promise<void>

Defined in: types.ts:323 

Callback run by connect after a new wallet is connected, with the connection (including isContractAddress). connect awaits it; if it throws or rejects, the error is stored in connectionError and the connection is not saved as the last connection.

Type Parameters

W

W extends BaseConnector = BaseConnector

Chain-specific connection type.

Parameters

connector

Connector<W>

The new active connection.

Returns

void | Promise<void>

Nothing, or a promise that connect awaits.

Last updated on