npm.io
0.2.15 • Published 2 years ago

@holographxyz/networks

Licence
SEE LICENSE IN LICENSE.md
Version
0.2.15
Deps
4
Size
386 kB
Vulns
0
Weekly
0
Holograph

Holograph Protocol - Network Configurations

Description

The Holograph Protocol works with a specific set of EVM blockchains, requires certain configurations, and uses proprietary chain IDs. This package helps to access all those variable conveniently.

Development

Getting Started
  1. Install package with npm i @holographxyz/networks
  2. Using the package:
    • TypeScript: import { networks } from '@holographxyz/networks'
    • JavaScript: const { networks } = require('@holographxyz/networks');
  3. The package also includes type definitions for: NetworkType, Network, and Networks.
RPC Endpoints

Every network is defined with a network name key inside of the networks object. Each network has a default RPC endpoint listed under rpc. You can override the detault value via environment variables. Environment variables are loaded from the .env file of your project/repo. The environment variables that are being queried is shown in the sample.env file.

Keywords