Alchemy Logo

useSmartAccountClient

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

Defined in: account-kit/react/dist/types/hooks/useSmartAccountClient.d.ts:6

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>>

Was this page helpful?