lightAccountClientActions

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

Import

1import { lightAccountClientActions } from "@account-kit/smart-contracts";

Usage

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

Parameters

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