Skip to content
Alchemy Logo

getSolanaConnection

function getSolanaConnection(config): null | SolanaConnection;

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

Used to get the connection for the id

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

ParameterTypeDescription

config

AlchemyAccountsConfig

the account config

null | SolanaConnection

a connection object for the current active chain

Was this page helpful?