Skip to content
Alchemy Logo

getConnection

function getConnection(config): Connection;

Defined in: account-kit/core/src/actions/getConnection.ts:19

Used to get the connection for the currently active chain

import { getConnection } from "@account-kit/core";
import { config } from "./config";
 
const connection = getConnection(config);

ParameterTypeDescription

config

AlchemyAccountsConfig

the account config

Connection

a connection object for the current active chain

Was this page helpful?