---
eip: 7949
label: EIP-7949
title: Genesis File Format
status: Draft
type: Informational
created: 2025-05-19
official: https://eips.ethereum.org/EIPS/eip-7949
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7949.md
canonical: https://eips.huatuo.xyz/eip-7949/
lang: en
tldr: Writes down the de facto Geth-style genesis.json format as a JSON Schema, so every client and tool can bootstrap the same network from the same file without guesswork.
tags: [genesis, configuration, client, json-schema, informational]
---

# EIP-7949: Genesis File Format

> Schema for `genesis.json` files

**TL;DR:** Writes down the de facto Geth-style genesis.json format as a JSON Schema, so every client and tool can bootstrap the same network from the same file without guesswork.

## What problem does it solve?

Every Ethereum network starts from a genesis file that sets the chain ID, fork schedule and initial balances and contracts. In practice clients converged on the layout Geth uses, but nothing official described it. The spec notes this has caused incompatibilities, bugs and extra work for anyone running several clients together on a testnet or devnet.

Newer proposals also keep adding fields to the genesis config, such as the blob schedule ([EIP-7840](/eip-7840/)) and Blob Parameter Only forks ([EIP-7892](/eip-7892/)). EIP-7949 defines the root structure those changes plug into, plus a JSON Schema tools can validate against.

## How it works

**Top level:** `config`, `alloc`, `nonce`, `timestamp`, `extraData`, `gasLimit`, `difficulty`, `mixhash`, `coinbase`. Numeric header values are hex strings. The schema requires `alloc`, `gasLimit` and `difficulty`.

**`config`** (decimal integers unless noted):

- `chainId`.
- Fork activation keys: `<fork>Block` for block-number forks (`londonBlock`, …) and `<fork>Time` for timestamp forks (`shanghaiTime`, `cancunTime`, `pragueTime`, `osakaTime`).
- `terminalTotalDifficulty` (hex string) and `depositContractAddress`.
- `blobSchedule`: per-fork `target`, `max` and `baseFeeUpdateFraction`.
- Unknown keys are allowed, so client-specific extensions still validate.

**`alloc`** maps addresses to `balance` (wei, hex), `nonce`, `code` and `storage` (32-byte hex keys and values).

## Sample code

A minimal devnet genesis that follows the schema (values are illustrative):

```json
{
  "config": {
    "chainId": 1337,
    "londonBlock": 0,
    "terminalTotalDifficulty": "0x0",
    "shanghaiTime": 0,
    "cancunTime": 0,
    "pragueTime": 0,
    "blobSchedule": {
      "cancun": { "target": 3, "max": 6, "baseFeeUpdateFraction": 3338477 },
      "prague": { "target": 6, "max": 9, "baseFeeUpdateFraction": 5007716 }
    }
  },
  "nonce": "0x0",
  "timestamp": "0x0",
  "extraData": "0x",
  "gasLimit": "0x1c9c380",
  "difficulty": "0x0",
  "alloc": {
    "0x1111111111111111111111111111111111111111": { "balance": "0xde0b6b3a7640000" }
  }
}
```

Validating with the schema from the EIP (saved locally as `genesis.schema.json`):

```bash
npx ajv-cli validate -s genesis.schema.json -d genesis.json
```

## Things to know

- Status: **Draft** (Informational). It documents existing practice; it does not change consensus.
- Mind the types: top-level header fields are hex strings, while `chainId`, fork activation values and `blobSchedule` numbers inside `config` are decimal integers.
- Real devnets usually need more than this minimal file (system contracts, deposit contract and so on in `alloc`), depending on which forks are active at genesis.
- A running node's effective configuration can be checked with `eth_config` ([EIP-7910](/eip-7910/)).


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-7949
