createConfig

1function createConfig(params): AlchemyAccountsConfig;

Defined in: account-kit/core/src/createConfig.ts:37

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.

Example

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

ParameterTypeDescription

params

CreateConfigProps

The parameters to create the config with

Returns

AlchemyAccountsConfig

An alchemy account config object containing the core and client store