Hooks
useActaAccount Hook
Hook for getting Actalink smart account instance.
Import
Usage
Parameters
Parameter | Type | Definition |
---|---|---|
eoaAddress | Address | EOA address of the connected wallet. |
eoaStatus | "connected" , "disconnected" , "reconnecting" , "connecting" | Connection status of the EOA wallet. |
chainId | number | ChainId of network to which the dapp is connected. |
config | Config | wagmi config. |
Returns
Value | Return Type | Definition |
---|---|---|
address | Address | It returns smart wallet address. |
actaAccount | ActalinkSmartAccount | Actalink smart wallet instance to get smart wallet related methods like getAddress(), getNonce and many more. |
status | "loaded" , "loading" , "not available" | Loading status of smart wallet. config. |
salt | Hex | Returns a unique value of salt. |
error | string | Error variable, if there is any error for smart wallet. |