isSmartAccountClient

1function isSmartAccountClient<TTransport, TChain, TAccount>(
2 client,
3): 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 Parameters

Type ParameterDefault type

TTransport extends Transport

Transport

TChain extends undefined | Chain

undefined | Chain

TAccount extends any

any

Parameters

ParameterTypeDescription

client

Client<TTransport, TChain, TAccount>

a viem client

Returns

client is SmartAccountClient<TTransport, TChain, TAccount>

true if the client is a SmartAccountClient