createAlchemySmartAccountClient

Creates an Alchemy smart account client using the provided configuration options, including account details, gas manager configuration, and custom middleware.

Import

1import { createAlchemySmartAccountClient } from "@account-kit/infra";

Usage

1import { createAlchemySmartAccountClient, alchemy } from "@account-kit/infra";
2import { sepolia } from "@account-kit/infra/chain";
3
4const client = createAlchemySmartAccountClient({
5 chain: sepolia,
6 transport: alchemy({ apiKey: "your-api-key" }),
7});

Parameters

config

AlchemySmartAccountClientConfig The configuration for creating the Alchemy smart account client

Returns

AlchemySmartAccountClient An instance of AlchemySmartAccountClient configured based on the provided options