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);| Parameter | Type | Description |
|---|---|---|
| the account config |
a connection object for the current active chain