Skip to main content

Interface: WalletContextState

GalaChain core SDK 1.0.0-rc.8


GalaChain core SDK 1.0.0-rc.8 / react / WalletContextState

Interface: WalletContextState

Defined in: packages/gala-core-sdk/dist/react.d.ts:5

What the wallet context knows.

Extended by​

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.


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).


error​

error: Error | null

Defined in: packages/gala-core-sdk/dist/react.d.ts:19

The last connection error.


galaAddress​

galaAddress: string | null

Defined in: packages/gala-core-sdk/dist/react.d.ts:11

The connected account as GalaChain spells it (eth|...).


isConnected​

isConnected: boolean

Defined in: packages/gala-core-sdk/dist/react.d.ts:13

True while a provider is connected to an account.


isConnecting​

isConnecting: boolean

Defined in: packages/gala-core-sdk/dist/react.d.ts:15

True while a connection is in progress.


isDetecting​

isDetecting: boolean

Defined in: packages/gala-core-sdk/dist/react.d.ts:17

True while wallets are being detected.


provider​

provider: WalletProvider | null

Defined in: packages/gala-core-sdk/dist/react.d.ts:7

The connected wallet provider.