SolToolkit has over 1,000+ downloads 👀

SolToolkit has over 1,000+ downloads 👀

Overview

SolToolkit is a Swiss Army knife for Solana devs. It is a Node.js library with 4 modules, such as ConnectionManager for switching between RPC endpoints and using the fastest endpoint available.

Installation

$ npm install -s @solworks/soltoolkit-sdk

Modules

ConnectionManager

ConnectionManager is a singleton class that manages web3.js Connection(s). It takes the following parameters on initialization using the async getInstance() method:

{
    network: Cluster;
    endpoint?: string;
    endpoints?: string[];
    config?: ConnectionConfig;
    commitment?: Commitment;
    mode?: Mode;
}

Parameters

Methods