Skip to content

alchemyActions

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

Import

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

Usage

import { alchemyActions } from "@account-kit/infra";
import { createPublicClient } from "viem";
 
const client = createPublicClient(...);
const 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