Skip to main content

Variable: WALLET\_NOT\_CONNECTED\_REASONS

GalaChain core SDK 1.0.0-rc.8


GalaChain core SDK 1.0.0-rc.8 / index / WALLET_NOT_CONNECTED_REASONS

Variable: WALLET_NOT_CONNECTED_REASONS

const WALLET_NOT_CONNECTED_REASONS: readonly ["not_connected", "disconnected", "unauthorized"]

Defined in: packages/gala-core-sdk/dist/index.d.ts:139

Why a wallet provider is not connected (WALLET_NOT_CONNECTED.params.reason):

  • not_connected: connect() was never called, or disconnect() was;
  • disconnected: the wallet reported it is disconnected (EIP-1193 4900 / 4901, a disconnect event, or an accountsChanged with no account);
  • unauthorized: the wallet refused the account (EIP-1193 4100): the person has not granted this app access to it.