createMultiOwnerModularAccountClient
Creates a multi-owner modular account client with the provided parameters including account, transport, chain, and additional client configuration. This function uses a modular account and extends it with various plugin actions.
Import
import { createMultiOwnerModularAccountClient } from "@account-kit/smart-contracts";
Usage
import { createMultiOwnerModularAccountClient } from "@account-kit/smart-contracts";
import { LocalAccountSigner } from "@aa-sdk/core";
import { sepolia } from "viem/chains";
import { http } from "viem";
import { generatePrivateKey } from "viem/accounts";
const accountClient = await createMultiOwnerModularAccountClient({
chain: sepolia,
transport: http("RPC_URL"),
signer: LocalAccountSigner.privateKeyToAccountSigner(generatePrivateKey()),
});
Parameters
config
CreateMultiOwnerModularAccountClientParams
The parameters for creating the multi-owner modular account client
Returns
Promise<SmartAccountClient>
A promise that resolves to a SmartAccountClient
instance with extended plugin actions