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.
- Install package with
npm i @holographxyz/networks
- Using the package:
- TypeScript:
import { networks } from '@holographxyz/networks'
- JavaScript:
const { networks } = require('@holographxyz/networks');
- TypeScript:
- The package also includes type definitions for:
NetworkType
,Network
, andNetworks
.
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.