isAlchemySmartAccountClient

Checks if a given client is an Alchemy Smart Account Client. The goal of this check is to ensure that the client supports certain RPC methods.

Import

1import { isAlchemySmartAccountClient } from "@account-kit/infra";

Usage

1import { isAlchemySmartAccountClient } from "@account-kit/infra";
2
3if (isAlchemySmartAccountClient(client)) {
4 // do things with the client as an Alchemy Smart Account Client
5}

Parameters

client

Client<TTransport, TChain, TAccount> The client instance to be checked

Returns

boolean true if the client is an Alchemy Smart Account Client, otherwise false