alchemyActions

1const alchemyActions: <TTransport, TChain, TAccount, TContext>(
2 client,
3) => 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.

Example

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

Type Parameters

Type ParameterDefault type

TTransport extends Transport

Transport

TChain extends Chain | undefined

Chain | undefined

TAccount extends SmartContractAccount | undefined

SmartContractAccount | undefined

TContext extends UserOperationContext | undefined

UserOperationContext | undefined

Parameters

ParameterType

client

Client<TTransport, TChain, TAccount>

Returns

AlchemySmartAccountClientActions<TAccount, TContext, TChain>

An object containing Alchemy Smart Account client actions