useSmartAccountClient

1function useSmartAccountClient<TChain, TAccount>(
2 args,
3): UseSmartAccountClientResult<
4 TChain,
5 SupportedAccount<TAccount extends undefined ? "ModularAccountV2" : TAccount>
6>;

Defined in: account-kit/react/src/hooks/useSmartAccountClient.ts:37

Type Parameters

Type ParameterDefault type

TChain extends undefined | Chain

undefined | Chain

TAccount extends undefined | SupportedAccountTypes

"ModularAccountV2"

Parameters

ParameterType

args

UseSmartAccountClientProps<TChain, TAccount>

Returns

UseSmartAccountClientResult<TChain, SupportedAccount<TAccount extends undefined ? "ModularAccountV2" : TAccount>>

An object containing the smart account client, the address, and a loading state. ref