createMultisigAccountAlchemyClient

Creates an Alchemy client for a multisig account using the provided configuration.

Import

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

Usage

1import { createMultisigAccountAlchemyClient } from "@account-kit/smart-contracts";
2import { sepolia } from "@account-kit/infra";
3import { LocalAccountSigner } from "@aa-sdk/core";
4import { generatePrivateKey } from "viem"
5
6const alchemyAccountClient = await createMultisigAccountAlchemyClient({
7transport: alchemy({ apiKey: "your-api-key" }),
8chain: sepolia,
9signer: LocalAccountSigner.privateKeyToAccountSigner(generatePrivateKey()),
10owners: [...], // other owners on the account
11threshold: 2, // 2 of N signatures
12});

Parameters

config

AlchemyMultisigAccountClientConfig The configuration for the Alchemy multisig account client

Returns

Promise<AlchemySmartAccountClient<Transport, Chain | undefined, MultisigModularAccount<SmartAccountSigner>, MultisigPluginActions<MultisigModularAccount<SmartAccountSigner>> & PluginManagerActions<MultisigModularAccount<SmartAccountSigner>> & AccountLoupeActions<MultisigModularAccount<SmartAccountSigner>>, MultisigUserOperationContext>> A promise that resolves to an Alchemy Smart Account Client for multisig accounts with extended functionalities.