Skip to content
Alchemy Logo

useSmartAccountClient

function useSmartAccountClient<TChain, TAccount>(
  args,
): UseSmartAccountClientResult<
  TChain,
  SupportedAccount<TAccount extends undefined ? "ModularAccountV2" : TAccount>
>;

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

Type ParameterDefault type

TChain extends undefined | Chain

undefined | Chain

TAccount extends undefined | SupportedAccountTypes

"ModularAccountV2"

ParameterType

args

UseSmartAccountClientProps<TChain, TAccount>

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

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

Was this page helpful?