react/interfaces/WalletContextValue.md
The whole wallet context.
Extends
wallet context state actions
Properties
| Property | Type | Description | Inherited from |
|---|---|---|---|
address | string | null | The connected account (0x, checksummed); it follows the wallet's account changes. | WalletContextState.address |
clearError | () => void | Clears the last connection error. | WalletContextActions.clearError |
connect | (provider) => Promise<string> | Connects through provider and makes it the context's provider. | WalletContextActions.connect |
connectDetected | (wallet) => Promise<string> | Connects to a detected wallet (Gala Wallet through GalaWalletProvider). | WalletContextActions.connectDetected |
detectedWallets | DetectedWallet[] | The wallets detected in this browser (EIP-6963 and the injected fallbacks). | WalletContextState.detectedWallets |
disconnect | () => Promise<void> | Disconnects the current provider and clears the context. | WalletContextActions.disconnect |
error | Error | null | The last connection error. | WalletContextState.error |
galaAddress | string | null | The connected account as GalaChain spells it (eth|...). | WalletContextState.galaAddress |
isConnected | boolean | True while a provider is connected to an account. | WalletContextState.isConnected |
isConnecting | boolean | True while a connection is in progress. | WalletContextState.isConnecting |
isDetecting | boolean | True while wallets are being detected. | WalletContextState.isDetecting |
provider | WalletProvider | null | The connected wallet provider. | WalletContextState.provider |
refreshWallets | () => Promise<void> | Detects the wallets again. | WalletContextActions.refreshWallets |
setProvider | (provider) => void | Sets the provider directly (an app that manages its own connection). | WalletContextActions.setProvider |
wallet context state clear error actions connect detected gala provider wallets address is connected connecting detecting refresh set