@ethereumjs/genesis
v10.1.1
Published
A module to provide genesis states of well known networks
Downloads
322
Readme
@ethereumjs/genesis v10
| A module to provide genesis states of well known networks. | | ---------------------------------------------------------- |
This module provides access to Ethereum genesis state for the following networks:
- Mainnet
- Sepolia
- Holesky
- Hoodi
Table of Contents
Installation
The package can be install with:
npm i @ethereumjs/genesisUsage
// ./examples/simple.ts
import { Chain } from '@ethereumjs/common' // or directly use chain ID
import { getGenesis } from '@ethereumjs/genesis'
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
The EthereumJS GitHub organization and its repositories are managed by members of the former Ethereum Foundation JavaScript team and the broader Ethereum community. If you want to join for work or carry out improvements on the libraries see the developer docs for an overview of current standards and tools and review our code of conduct.
