@hubbleprotocol/hubble-config
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

Hubble Config

Hubble config is a public registry/configuration with Solana public keys that are used by the Hubble Protocol.

Install

npm

npm install @hubbleprotocol/hubble-config

Usage

// For ESM
import { getAllConfigs, getConfigByEnv } from "@hubbleprotocol/hubble-config";

// For CommonJS
const config = require("@hubbleprotocol/hubble-config");

// Get all configs: mainnet-beta, devnet, localnet, testnet configs
const configs = getAllConfigs();

// Get config by solana environment:
const mainnetConfig = getConfigByEnv('mainnet-beta');
const devnetConfig = getConfigByEnv('devnet');

Package Sidebar

Install

npm i @hubbleprotocol/hubble-config

Weekly Downloads

677

Version

5.0.0

License

Apache-2.0

Unpacked Size

317 kB

Total Files

56

Last publish

Collaborators

  • siltros971
  • valqrtis
  • mihalex
  • andreihrs
  • peroxy
  • elliotkennedy
  • hubbleadmin