createConfig

Creates an AlchemyAccountsConfig object that can be used in conjunction with the actions exported from @account-kit/core.

The config contains core and client stores that can be used to manage account state in your application.

Import

1import { createConfig } from "@account-kit/core";

Usage

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

Parameters

params

CreateConfigProps The parameters to create the config with

Returns

AlchemyAccountsConfig An alchemy account config object containing the core and client store