Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gxchain2/common

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gxchain2/common

[![NPM Version](https://img.shields.io/npm/v/@gxchain2/common)](https://www.npmjs.org/package/@gxchain2/common) ![License](https://img.shields.io/npm/l/@gxchain2/common)

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

@gxchain2/common

NPM Version License

The basic settings of gxchain2, based on @gxchain2-ethereumjs/common, including parameters of the mainnet and testnet:

  • chains Chain information of each chain
  • genesisStates Initial state of each chain
  • GIP(GXChain2.0 Improvement Proposal) of each chain
  • hardforks Fork information of each chain

INSTALL

npm install @gxchain2/common

USAGE

// create chain start common with chain name
Common.createChainStartCommon("gxc2-mainnet");
// create with chain id
Common.createCommonByBlockNumber(0, 12347);
// create with chain name
Common.createCommonByBlockNumber(0, "goerli");
// create with an object containing chain information
Common.createCommonByBlockNumber(0, {
  chain: "mychain",
  networkId: 100,
  genesis: {
    // ...genesis block
  },
  hardforks: [],
  bootstrapNodes: [],
});

License

GNU General Public License v3.0

FAQs

Package last updated on 15 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc