useAccount
Description
This hook provides an easy way to access the current status and information of a smart account in a React application, providing essential details such as the smart account address, client instance, and connection status.
Returns
address
(Address | undefined)smartAccountClient
(ContextComethSmartAccountClient | null)isConnected
(boolean)isDisconnected
(boolean)status
(AccountStatus)
Example
Last updated