createMultiOwnerLightAccountClient

Creates a multi-owner light account client using the provided parameters. It first creates a multi-owner light account and then creates a smart account client with the provided configurations.

Import

1import { createMultiOwnerLightAccountClient } from "@account-kit/smart-contracts";

Usage

1import { createMultiOwnerLightAccountClient } from "@account-kit/smart-contracts";
2import { LocalAccountSigner } from "@aa-sdk/core";
3import { sepolia } from "viem/chains";
4import { http, generatePrivateKey } from "viem";
5
6const account = await createMultiOwnerLightAccountClient({
7 chain: sepolia,
8 transport: http("RPC_URL"),
9 signer: LocalAccountSigner.privateKeyToAccountSigner(generatePrivateKey()),
10});

Parameters

params

CreateMultiOwnerLightAccountClientDynamicTransportParams the configuration for creating the multi-owner light / alchemy account client with the provided parameters transport

Returns

Promise<SmartAccountClient> a promise that resolves to a SmartAccountClient containing the created account client and relevant methods