UseActiveAccountResult
Defined in: packages/react/src/hooks/useActiveAccount.ts:10
Properties
Section titled “Properties”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
Section titled “isConnected”isConnected:
boolean
Defined in: packages/react/src/hooks/useActiveAccount.ts:22
Whether the wallet is connected
isError
Section titled “isError”isError:
boolean
Defined in: packages/react/src/hooks/useActiveAccount.ts:18
Whether there was an error
isLoading
Section titled “isLoading”isLoading:
boolean
Defined in: packages/react/src/hooks/useActiveAccount.ts:16
Whether account is loading
partyId
Section titled “partyId”partyId:
string|null
Defined in: packages/react/src/hooks/useActiveAccount.ts:14
The party ID of the active account
setActiveAccount()
Section titled “setActiveAccount()”setActiveAccount: (
partyId) =>void
Defined in: packages/react/src/hooks/useActiveAccount.ts:24
Set a different account as active
Parameters
Section titled “Parameters”partyId
Section titled “partyId”string
Returns
Section titled “Returns”void