@hubbleprotocol/hubble-config
Version:
Hubble Protocol configuration
28 lines (19 loc) • 781 B
Markdown
is a public registry/configuration with Solana public keys that are used by the [Hubble Protocol](https://hubbleprotocol.io).
[](https://www.npmjs.com/package/@hubbleprotocol/hubble-config)
```shell
npm install @hubbleprotocol/hubble-config
```
```js
// 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');
```
Hubble config