Skip to content

isSmartAccountClient

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

Import

import { isSmartAccountClient } from "@aa-sdk/core";

Parameters

client

Client<TTransport, TChain, TAccount> a viem client

Returns

boolean true if the client is a SmartAccountClient