useSmartWalletClient
React hook that provides a Smart Wallet Client instance. Returns undefined if an EOA wallet is connected via wagmi, as Smart Wallet Clients are only for smart accounts. The hook automatically subscribes to changes in signer status and chain configuration.
Import
Usage
Parameters
params
GetSmartWalletClientParams<TAccount>
Parameters for getting the smart wallet client, including optional account address
Returns
GetSmartWalletClientResult<TAccount>
The Smart Wallet Client instance or undefined if an EOA is connected or client is unavailable