Skip to content

disconnect

Disconnects the current signer, accounts, and clears the store.

Import

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

Usage

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

Parameters

config

AlchemyAccountsConfig The configuration containing the store to be cleared