getSolanaConnection

1function getSolanaConnection(config): null | SolanaConnection;

Defined in: account-kit/core/src/actions/getSolanaConnection.ts:17

Used to get the connection for the id

Example

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

Parameters

ParameterTypeDescription

config

AlchemyAccountsConfig

the account config

Returns

null | SolanaConnection

a connection object for the current active chain