EIPs Explained

EIP-7910 · Final · Interface · 2025-03-18

EIP-7910: eth_config JSON-RPC Method

Adds eth_config, a JSON-RPC method that returns a node's current, next and last fork configuration (chain ID, fork ID, blob schedule, precompiles, system contracts) so operators can catch misconfigured clients before a hard fork.

What problem does it solve?

Several hard forks have exposed clients that were simply configured wrong for the new rules. The most serious example cited by the spec is Pectra on the Holešky testnet, where four of six clients had an incorrect deposit contract configuration and the wrong chain was justified, with effects that persisted afterwards.

Until EIP-7910 there was no standard way to ask a node "what rules will you apply at the next fork?" eth_config gives operators, validator teams and monitoring tools a uniform answer they can diff across clients ahead of time.

How it works

eth_config takes no parameters and returns three members:

  • current: the configuration in effect now.
  • next: the next scheduled fork's configuration (or null).
  • last: the last fork the client knows about (or null; equal to next if they are the same fork).

Each configuration is a full snapshot (not a delta), with keys in alphabetical order:

Member Content
activationTime Fork timestamp in Unix seconds (0 if active at genesis)
blobSchedule baseFeeUpdateFraction, max, target
chainId Lower-case 0x hex string
forkId FORK_HASH from EIP-6122, 4 bytes
precompiles Name to address map, e.g. MODEXP, BLS12_G1ADD, P256VERIFY
systemContracts Name to address map, e.g. BEACON_ROOTS_ADDRESS (Cancun onward)

Values must reflect the latest header the node serves. Blob Parameter Only forks (EIP-7892) appear as new forks that only change blobSchedule. Future hard forks add or change members in their own EIPs or meta-EIPs. There is no config hash: tools compare the sorted JSON directly.

Sample code

Comparing two nodes before a fork (ethers v6):

import { JsonRpcProvider } from "ethers";

const nodes = [process.env.NODE_A!, process.env.NODE_B!].map((u) => new JsonRpcProvider(u));
const [a, b] = await Promise.all(nodes.map((p) => p.send("eth_config", [])));

const same = JSON.stringify(a.next) === JSON.stringify(b.next);
console.log("next fork time:", a.next?.activationTime, "configs match:", same);

Raw request:

curl -s -X POST -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","method":"eth_config","id":1}' http://localhost:8545

Things to know

  • Status: Final (Interface). Full compliance is required only for Cancun and later; older forks may return partial or non-standard data.
  • Clients must not just echo raw config files; values should be the ones the client actually uses.
  • The spec recommends exposing it only on trusted or authenticated interfaces and allows caching and rate limiting. A dishonest node can lie, so cross-check against the fork's meta-EIP (e.g. EIP-7600 for Pectra).

#json-rpc #node #hardfork #configuration #interface

Details

Authors
Danno Ferrin (@shemnon)
Status
Final
Type
Standards Track / Interface
Created
2025-03-18
Required by

Machine-readable: Markdown · JSON