Skip to content
Alchemy Logo

createConfig

function 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.

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

ParameterTypeDescription

params

CreateConfigProps

The parameters to create the config with

AlchemyAccountsConfig

An alchemy account config object containing the core and client store

Was this page helpful?