getConnection

1function getConnection(config): Connection;

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

Used to get the connection for the currently active chain

Example

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

Parameters

ParameterTypeDescription

config

AlchemyAccountsConfig

the account config

Returns

Connection

a connection object for the current active chain