Skip to content

UseActiveAccountResult

Defined in: packages/react/src/hooks/useActiveAccount.ts:10

data: { disabled?: boolean; externalTxId?: string; hint: string; namespace: string; networkId: string; partyId: string; primary: boolean; publicKey: string; reason?: string; signingProviderId: string; status: "initialized" | "allocated"; topologyTransactions?: string; } | null

Defined in: packages/react/src/hooks/useActiveAccount.ts:12

The currently active account


error: Error | null

Defined in: packages/react/src/hooks/useActiveAccount.ts:20

Error if any


isConnected: boolean

Defined in: packages/react/src/hooks/useActiveAccount.ts:22

Whether the wallet is connected


isError: boolean

Defined in: packages/react/src/hooks/useActiveAccount.ts:18

Whether there was an error


isLoading: boolean

Defined in: packages/react/src/hooks/useActiveAccount.ts:16

Whether account is loading


partyId: string | null

Defined in: packages/react/src/hooks/useActiveAccount.ts:14

The party ID of the active account


setActiveAccount: (partyId) => void

Defined in: packages/react/src/hooks/useActiveAccount.ts:24

Set a different account as active

string

void