getSolanaConnection

Used to get the connection for the id

Import

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

Usage

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

Parameters

config

AlchemyAccountsConfig the account config

Returns

SolanaConnection | void a connection object for the current active chain