Skip to content
Alchemy Logo

isSmartAccountClient

function isSmartAccountClient<TTransport, TChain, TAccount>(
  client,
): client is SmartAccountClient<TTransport, TChain, TAccount>;

Defined in: aa-sdk/core/src/client/isSmartAccountClient.ts:17

Use this method to assert that a client is a BaseSmartAccountClient. Useful for narrowing the type of the client down when used within the smart account client decorators

Type ParameterDefault type

TTransport extends Transport

Transport

TChain extends undefined | Chain

undefined | Chain

TAccount extends any

any

ParameterTypeDescription

client

Client<TTransport, TChain, TAccount>

a viem client

client is SmartAccountClient<TTransport, TChain, TAccount>

true if the client is a SmartAccountClient

Was this page helpful?