Skip to Content

SatelliteConnectionGate<W>

SatelliteConnectionGate<W> = (connection, context) => Promise<void> | void

Defined in: types.ts:476 

What a wallet must pass to count as connected, such as a sign-in. It runs after the wallet has connected and before the store shows it: while it runs connecting stays true and neither activeConnection nor connections hold the wallet. Throw or reject to refuse it, and the store goes on as if it had never connected.

Type Parameters

W

W extends BaseConnector = BaseConnector

Chain-specific connection type.

Parameters

connection

Connector<W>

The wallet, which can already sign with signMessage.

context

Why it is asked.

isRestore

boolean

Whether the wallet comes back after a page load, when nobody has asked for it: refuse a wallet that needs something of a person instead of asking.

Returns

Promise<void> | void

Resolves when it passes.

Throws

What it throws is the refusal: it goes to connectionError, except for a restore.

Last updated on