Wallet hooks
useAccounts
The useAccounts
hook retrieves a list of connected accounts the dApp authorizes.
Example
Available accounts:
No accounts detected
Account properties
address
: The address of the account, corresponding with a public key.publicKey
: The public key of the account, represented as aUint8Array
.chains
: The chains the account supports.features
: The features the account supports.label
: An optional user-friendly descriptive label or name for the account.icon
: An optional user-friendly icon for the account.