updateMultiOwnerLightAccountOwners

1const updateMultiOwnerLightAccountOwners: <
2 TTransport,
3 TChain,
4 TSigner,
5 TAccount,
6>(
7 client,
8 args,
9) => Promise<Hex>;

Defined in: account-kit/smart-contracts/dist/types/src/light-account/actions/updateOwners.d.ts:33

Updates the owners of a multi-owner light account. This includes adding new owners and removing existing ones.

Example

1import {
2 updateOwners,
3 createLightAccountClient,
4} from "@account-kit/smart-contracts";
5
6const lightAccountClient = createLightAccountClient({
7 signer,
8 transport,
9 chain,
10});
11
12const txHash = await updateOwners(lightAccountClient, {
13 ownerstoAdd: [newOwnerAddress], // or empty if you just want to remove owners
14 ownersToRemove: [oldOwnerAddress], // or empty if you just want to add owners
15 waitForTxn: true, // set to false to return a uoHash instead
16});

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 instance used to interact with the account

args

UpdateMultiOwnerLightAccountOwnersParams<TSigner, TAccount>

The parameters for updating the account owners

Returns

Promise<Hex>

A promise that resolves to the transaction hash or the full transaction result if waitForTxn is true