@ethereumjs/genesis
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

@ethereumjs/genesis

NPM Package GitHub Issues Actions Status Code Coverage Discord

A module to provide genesis states of well known networks.

This module provides access to Ethereum genesis state for the following networks:

  • Mainnet
  • Goerli
  • Sepolia
  • Holesky

The package can be install with:

npm i @ethereumjs/genesis

Usage

// ./examples/simple.ts

import { getGenesis } from '@ethereumjs/genesis'
import { Chain } from '@ethereumjs/common' // or directly use chain ID

const mainnetGenesis = getGenesis(Chain.Mainnet)
console.log(
  `This balance for account 0x000d836201318ec6899a67540690382780743280 in this chain's genesis state is ${parseInt(
    mainnetGenesis!['0x000d836201318ec6899a67540690382780743280'] as string
  )}`
)

EthereumJS

See our organizational documentation for an introduction to EthereumJS as well as information on current standards and best practices. If you want to join for work or carry out improvements on the libraries, please review our contribution guidelines first.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @ethereumjs/genesis

Weekly Downloads

72

Version

0.2.2

License

MIT

Unpacked Size

2.68 MB

Total Files

61

Last publish

Collaborators

  • acolytec3
  • g11tech
  • axic
  • holgerd77