Skip to main content

react/interfaces/WalletContextValue.md

The whole wallet context.

Extends​

Properties​

PropertyTypeDescriptionInherited from
addressstring | nullThe connected account (0x, checksummed); it follows the wallet's account changes.WalletContextState.address
clearError() => voidClears 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
detectedWalletsDetectedWallet[]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
errorError | nullThe last connection error.WalletContextState.error
galaAddressstring | nullThe connected account as GalaChain spells it (eth|...).WalletContextState.galaAddress
isConnectedbooleanTrue while a provider is connected to an account.WalletContextState.isConnected
isConnectingbooleanTrue while a connection is in progress.WalletContextState.isConnecting
isDetectingbooleanTrue while wallets are being detected.WalletContextState.isDetecting
providerWalletProvider | nullThe connected wallet provider.WalletContextState.provider
refreshWallets() => Promise<void>Detects the wallets again.WalletContextActions.refreshWallets
setProvider(provider) => voidSets the provider directly (an app that manages its own connection).WalletContextActions.setProvider