Skip to main content

index/variables/WALLET_NOT_CONNECTED_REASONS.md

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

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.