multiOwnerPluginActions

1const multiOwnerPluginActions: <TTransport, TChain, TAccount>(
2 client,
3) => MultiOwnerPluginActions<TAccount>;

Defined in: account-kit/smart-contracts/dist/types/src/msca/plugins/multi-owner/extension.d.ts:28

Creates actions for the MultiOwner plugin, including reading owners and checking ownership. NOTE: this is already added to the client returned from createMultiOwnerModularAccountClient

Example

1import { multiOwnerPluginActions } from "@account-kit/smart-contracts";
2import { createSmartAccountClient } from "@aa-sdk/core";
3
4const client = createSmartAccountClient(...).extend(multiOwnerPluginActions);

Type Parameters

Type ParameterDefault type

TTransport extends Transport

Transport

TChain extends Chain | undefined

Chain | undefined

TAccount extends SmartContractAccount | undefined

SmartContractAccount | undefined

Parameters

ParameterTypeDescription

client

Client<TTransport, TChain, TAccount>

the client instance containing the transport, chain, and account information

Returns

MultiOwnerPluginActions<TAccount>

an object containing the actions for the MultiOwner plugin, such as readOwners and isOwnerOf