lightAccountClientActions

1const lightAccountClientActions: <TTransport, TChain, TSigner, TAccount>(
2 client,
3) => LightAccountClientActions<TSigner, TAccount>;

Defined in: account-kit/smart-contracts/src/light-account/decorators/lightAccount.ts:39

Provides a set of actions for managing a light account client, including transferring ownership.

Example

1import { lightAccountClientActions, createLightAccount } from "@account-kit/smart-contracts";
2import { createAlchemySmartAccountClient } from "@account-kit/infra";
3import { sepolia } from "@account-kit/infra";
4
5const smartAccountClient = createAlchemySmartAccountClient({
6 account: await createLightAccount(...),
7 apiKey: "your-api-key",
8 chain: sepolia,
9}).extend(lightAccountClientActions);

Type Parameters

Type ParameterDefault type

TTransport extends Transport

Transport

TChain extends Chain | undefined

Chain | undefined

TSigner extends SmartAccountSigner

SmartAccountSigner

TAccount extends LightAccount<TSigner> | undefined

LightAccount<TSigner> | undefined

Parameters

ParameterTypeDescription

client

Client<TTransport, TChain, TAccount>

The client instance for which to provide the light account actions

Returns

LightAccountClientActions<TSigner, TAccount>

An object containing the available light account client actions