getConnection
Used to get the connection for the currently active chain
Import
import { getConnection } from "@account-kit/core";
Usage
import { getConnection } from "@account-kit/core";
import { config } from "./config";
const connection = getConnection(config);
Parameters
config
AlchemyAccountsConfig
the account config
Returns
Connection
a connection object for the current active chain