Socket
Book a DemoInstallSign in
Socket

@ethereumjs/genesis

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethereumjs/genesis

A module to provide genesis states of well known networks

latest
Source
npmnpm
Version
10.1.0
Version published
Weekly downloads
174
48.72%
Maintainers
4
Weekly downloads
 
Created
Source

@ethereumjs/genesis v10

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
  • Sepolia
  • Holesky
  • Hoodi

Table of Contents

Installation

The package can be install with:

npm i @ethereumjs/genesis

Usage

// ./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.

License

MIT

Keywords

ethereum

FAQs

Package last updated on 06 Nov 2025

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