Skip to main content

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

PropertyTypeDescriptionDefined in
accountsWalletAccount[]All accounts from the current wallet session.KeaContext.ts:23
errorError | nullThe most recent error, or null.KeaContext.ts:27
isConnectedbooleanWhether the wallet is currently connected.KeaContext.ts:17
isConnectingbooleanWhether a connection attempt is in progress.KeaContext.ts:19
isReconnectingbooleanWhether the SDK is attempting a silent auto-reconnect.KeaContext.ts:21
sdkanyThe 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 wrapperKeaContext.ts:33
selectedAccountanyThe currently active account, or null if none is selected.KeaContext.ts:25
thruanyThe Thru chain adapter, or null if Thru is not enabled in the config.KeaContext.ts:15