@holographxyz/networks
TypeScript icon, indicating that this package has built-in type declarations

0.2.15 • Public • Published
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.

Package Sidebar

Install

npm i @holographxyz/networks

Weekly Downloads

14

Version

0.2.15

License

SEE LICENSE IN LICENSE.md

Unpacked Size

396 kB

Total Files

30

Last publish

Collaborators

  • attar
  • angelloholograph
  • lostmidas
  • felipe.xyz