createMultisigAccountAlchemyClient
Creates an Alchemy client for a multisig account using the provided configuration.
Import
import { createMultisigAccountAlchemyClient } from "@account-kit/smart-contracts";
Usage
import { createMultisigAccountAlchemyClient } from "@account-kit/smart-contracts";
import { sepolia } from "@account-kit/infra";
import { LocalAccountSigner } from "@aa-sdk/core";
import { generatePrivateKey } from "viem"
const alchemyAccountClient = await createMultisigAccountAlchemyClient({
transport: alchemy({ apiKey: "your-api-key" }),
chain: sepolia,
signer: LocalAccountSigner.privateKeyToAccountSigner(generatePrivateKey()),
owners: [...], // other owners on the account
threshold: 2, // 2 of N signatures
});
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.