createMultiOwnerLightAccountAlchemyClient

Creates a multi-owner light account Alchemy client using the provided configuration.

Import

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

Usage

1import { createMultiOwnerLightAccountAlchemyClient } from "@account-kit/smart-contracts";
2import { sepolia, alchemy } from "@account-kit/infra";
3import { LocalAccountSigner } from "@aa-sdk/core";
4import { generatePrivateKey } from "viem"
5
6const lightAccountClient = await createMultiOwnerLightAccountAlchemyClient({
7transport: alchemy({
8apiKey: "your-api-key",
9}),
10chain: sepolia
11signer: LocalAccountSigner.privateKeyToAccountSigner(generatePrivateKey())
12});

Parameters

config

AlchemyMultiOwnerLightAccountClientConfig The configuration for creating the Alchemy client

Returns

Promise<AlchemySmartAccountClient> A promise that resolves to an AlchemySmartAccountClient object containing the created account information and methods