@holographxyz/networks
v0.2.15
Published
Holograph Protocol
Downloads
101
Readme
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
- 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
.
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.