3.0.4 • Published 5 months ago
@rei-network/common v3.0.4
@rei-network/common
The basic settings of rei, based on @ethereumjs/common, including parameters of the mainnet and testnet:
chainsChain information of each chaingenesisStatesInitial state of each chainRIP(REI-Network Improvement Proposal) of each chainhardforksFork information of each chain
INSTALL
npm install @rei-network/commonUSAGE
// create chain start common with chain name
Common.createChainStartCommon("rei-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: [],
});