Interface: WalletContextValue
GalaChain core SDK 1.0.0-rc.8 / react / WalletContextValue
Interface: WalletContextValue
Defined in: packages/gala-core-sdk/dist/react.d.ts:39
The whole wallet context.
Extends
Properties
address
address:
string|null
Defined in: packages/gala-core-sdk/dist/react.d.ts:9
The connected account (0x, checksummed); it follows the wallet's account changes.
Inherited from
clearError
clearError: () =>
void
Defined in: packages/gala-core-sdk/dist/react.d.ts:36
Clears the last connection error.
Returns
void
Inherited from
WalletContextActions.clearError
connect
connect: (
provider) =>Promise<string>
Defined in: packages/gala-core-sdk/dist/react.d.ts:26
Connects through provider and makes it the context's provider.
Parameters
provider
Returns
Promise<string>
Inherited from
connectDetected
connectDetected: (
wallet) =>Promise<string>
Defined in: packages/gala-core-sdk/dist/react.d.ts:28
Connects to a detected wallet (Gala Wallet through GalaWalletProvider).
Parameters
wallet
Returns
Promise<string>
Inherited from
WalletContextActions.connectDetected
detectedWallets
detectedWallets:
DetectedWallet[]
Defined in: packages/gala-core-sdk/dist/react.d.ts:21
The wallets detected in this browser (EIP-6963 and the injected fallbacks).
Inherited from
WalletContextState.detectedWallets
disconnect
disconnect: () =>
Promise<void>
Defined in: packages/gala-core-sdk/dist/react.d.ts:30
Disconnects the current provider and clears the context.
Returns
Promise<void>
Inherited from
WalletContextActions.disconnect
error
error:
Error|null
Defined in: packages/gala-core-sdk/dist/react.d.ts:19
The last connection error.
Inherited from
galaAddress
galaAddress:
string|null
Defined in: packages/gala-core-sdk/dist/react.d.ts:11
The connected account as GalaChain spells it (eth|...).
Inherited from
WalletContextState.galaAddress
isConnected
isConnected:
boolean
Defined in: packages/gala-core-sdk/dist/react.d.ts:13
True while a provider is connected to an account.
Inherited from
WalletContextState.isConnected
isConnecting
isConnecting:
boolean
Defined in: packages/gala-core-sdk/dist/react.d.ts:15
True while a connection is in progress.
Inherited from
WalletContextState.isConnecting
isDetecting
isDetecting:
boolean
Defined in: packages/gala-core-sdk/dist/react.d.ts:17
True while wallets are being detected.
Inherited from
WalletContextState.isDetecting
provider
provider:
WalletProvider|null
Defined in: packages/gala-core-sdk/dist/react.d.ts:7
The connected wallet provider.
Inherited from
refreshWallets
refreshWallets: () =>
Promise<void>
Defined in: packages/gala-core-sdk/dist/react.d.ts:34
Detects the wallets again.
Returns
Promise<void>
Inherited from
WalletContextActions.refreshWallets
setProvider
setProvider: (
provider) =>void
Defined in: packages/gala-core-sdk/dist/react.d.ts:32
Sets the provider directly (an app that manages its own connection).
Parameters
provider
WalletProvider | null
Returns
void