Skip to content
Alchemy Logo

lightAccountClientActions

const lightAccountClientActions: <TTransport, TChain, TSigner, TAccount>(
  client,
) => 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.

import { lightAccountClientActions, createLightAccount } from "@account-kit/smart-contracts";
import { createAlchemySmartAccountClient } from "@account-kit/infra";
import { sepolia } from "@account-kit/infra";
 
const smartAccountClient = createAlchemySmartAccountClient({
 account: await createLightAccount(...),
 apiKey: "your-api-key",
 chain: sepolia,
}).extend(lightAccountClientActions);

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

ParameterTypeDescription

client

Client<TTransport, TChain, TAccount>

The client instance for which to provide the light account actions

LightAccountClientActions<TSigner, TAccount>

An object containing the available light account client actions

Was this page helpful?