Alchemy Logo

alchemyActions

const alchemyActions: <TTransport, TChain, TAccount, TContext>(
  client,
) => AlchemySmartAccountClientActions<TAccount, TContext, TChain>;

Defined in: account-kit/infra/dist/types/client/decorators/smartAccount.d.ts:25

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

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

| Type Parameter | Default type | | :------------------------------------------ | :----------- | ---------------------- | ----------- | | TTransport extends Transport | Transport | | TChain extends Chain | undefined | Chain | undefined | | TAccount extends SmartContractAccount | undefined | SmartContractAccount | undefined | | TContext extends UserOperationContext | undefined | UserOperationContext | undefined |

ParameterType
clientClient<TTransport, TChain, TAccount>

AlchemySmartAccountClientActions<TAccount, TContext, TChain>

An object containing Alchemy Smart Account client actions

Was this page helpful?