alchemyActions

Provides a set of actions for interacting with the Alchemy Smart Account client, including the ability to simulate user operations.

Import

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

Usage

1import { alchemyActions } from "@account-kit/infra";
2import { createPublicClient } from "viem";
3
4const client = createPublicClient(...);
5const clientWithAlchemyActions = client.extend(alchemyActions);

Parameters

client_

Client<TTransport, TChain, TAccount> The client instance used to perform actions

Returns

AlchemySmartAccountClientActions<TAccount, TContext> An object containing Alchemy Smart Account client actions