Skip to content

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

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

Usage

import { createMultiOwnerLightAccountClient } from "@account-kit/smart-contracts";
import { LocalAccountSigner } from "@aa-sdk/core";
import { sepolia } from "viem/chains";
import { http, generatePrivateKey } from "viem";
 
const account = await createMultiOwnerLightAccountClient({
  chain: sepolia,
  transport: http("RPC_URL"),
  signer: LocalAccountSigner.privateKeyToAccountSigner(generatePrivateKey()),
});

Parameters

params

CreateMultiOwnerLightAccountClientParams the configuration for creating the multi-owner light account client

Returns

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