multiOwnerLightAccountClientActions

1const multiOwnerLightAccountClientActions: <
2 TTransport,
3 TChain,
4 TSigner,
5 TAccount,
6>(
7 client,
8) => MultiOwnerLightAccountClientActions<TSigner, TAccount>;

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

Generates client actions for a multi-owner light account, including the ability to update owners.

Example

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

Type Parameters

Type ParameterDefault type

TTransport extends Transport

Transport

TChain extends Chain | undefined

Chain | undefined

TSigner extends SmartAccountSigner

SmartAccountSigner

TAccount extends MultiOwnerLightAccount<TSigner> | undefined

MultiOwnerLightAccount<TSigner> | undefined

Parameters

ParameterTypeDescription

client

Client<TTransport, TChain, TAccount>

the client for interacting with the multi-owner light account

Returns

MultiOwnerLightAccountClientActions<TSigner, TAccount>

an object containing the client actions specifically for a multi-owner light account