Interface: KeaContextValue
Defined in: KeaContext.ts:11
Shape of the value provided by KeaProvider via React context. Access it with the useKea hook.
See
- KeaProvider — the provider that populates this context
- useKea — hook to consume this context
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
accounts | WalletAccount[] | All accounts from the current wallet session. | KeaContext.ts:23 |
error | Error | null | The most recent error, or null. | KeaContext.ts:27 |
isConnected | boolean | Whether the wallet is currently connected. | KeaContext.ts:17 |
isConnecting | boolean | Whether a connection attempt is in progress. | KeaContext.ts:19 |
isReconnecting | boolean | Whether the SDK is attempting a silent auto-reconnect. | KeaContext.ts:21 |
sdk | any | The underlying BrowserSDK instance, or null before initialization. | KeaContext.ts:13 |
selectAccount | (account: WalletAccount) => Promise<void> | Switch the active account. See useWallet for a higher-level wrapper | KeaContext.ts:33 |
selectedAccount | any | The currently active account, or null if none is selected. | KeaContext.ts:25 |
thru | any | The Thru chain adapter, or null if Thru is not enabled in the config. | KeaContext.ts:15 |