Erigon vs Geth: how two Ethereum execution clients differ

GoldRush TeamUpdated 16 min read

Erigon vs Geth: how each stores Ethereum state, archive disk needs, trace_ vs debug_ tracing, Caplin vs a separate consensus client, and which one to run.

Erigon and Geth are both Ethereum execution clients: the half of an Ethereum node that runs transactions in the EVM, keeps the state and serves the JSON-RPC API. They follow the same protocol rules and give the same answer to eth_getBalance. The difference is how they get there. Geth (go-ethereum) is the original Go implementation and keeps state in a Merkle Patricia trie. Erigon, which began as a fork of Geth called Turbo-Geth and was then rebuilt, keeps state as flat key-value pairs, syncs in stages, ships its own consensus client, and serves the trace_* API that Geth doesn't have.

In short: choose Geth for the reference implementation with the widest tooling and documentation, and the debug_* tracers most tools expect. Choose Erigon for an archive node or a tracing backend, where its storage model, trace_* namespace and single-binary setup pay off. Both run as full nodes or archive nodes; the 2024 version of this page got that wrong, and much else has changed since, so this guide is rewritten for Erigon 3 and Geth's path-based archive.

Erigon vs Geth at a glance

Geth Erigon
Language Go Go
State storage Merkle Patricia trie, stored by path (the default for new nodes), plus a flat snapshot for fast reads Flat key-value state in MDBX; the trie root is computed during execution, not stored as a tree
Default sync Snap sync: start from a recent state and download it, then follow the chain Staged sync with OtterSync: download history as immutable snapshot files over BitTorrent, then execute
Default node type Full node: recent 128 states kept Full node (--prune.mode=full): state and blocks for a recent window of about 262,000 blocks
Archive mode Path-based archive (Geth 1.16 and later); legacy hash-based archive --prune.mode=archive
Consensus client Separate (Lighthouse, Prysm, Teku, Nimbus, Lodestar, Grandine), connected over the Engine API Caplin built in and on by default; --externalcl to use a separate one
Tracing APIs debug_* with built-in tracers (callTracer, prestateTracer, 4byteTracer, opcode logger) and custom tracers debug_* and Parity-style trace_* (including trace_filter), plus ots_* for the Otterscan explorer
RPC deployment In-process HTTP, WebSocket and IPC servers In-process by default, or one or more separate rpcdaemon processes reading the same database

The rest of this guide explains each row and what it means when you run a node or choose one to query.

Execution clients in one paragraph

Since the Merge, an Ethereum node is an execution client plus a consensus client talking over the authenticated Engine API. The consensus client follows proof of stake and tells the execution client which block is the new head; the execution client executes it, updates state, and answers RPC calls. What is an RPC node, and how does it work? walks through that split, the request path inside a node, and full vs archive nodes. This guide is about the execution side only, where the clients differ.

ethereum.org lists six execution clients that pass the client tests and are actively maintained (nodes and clients): Geth, Nethermind, Besu, Erigon, Reth and ethrex. They implement the same consensus rules and the same standard JSON-RPC methods. Where they differ is storage layout, sync strategy, disk and memory needs, and the extra RPC namespaces each one adds.

How Geth and Erigon store state

Ethereum's state, every account's balance, nonce, code and storage, is committed to by a single hash in each block header: the state root of a Merkle Patricia trie. Every client must compute that root. They don't all have to store the trie to do it.

Geth stores the trie. Its current default, the path-based scheme, keys each trie node by its position in the tree rather than by its hash, so an updated node overwrites the old one in place instead of leaving it behind as garbage. Geth keeps exactly one full state on disk, 128 blocks behind the head, holds the newer changes in memory, and keeps reverse diffs ("state history") so it can roll back for a reorg (Geth archive mode docs). A flat snapshot of accounts and storage sits beside the trie so plain reads don't have to walk it. Older blocks and receipts move to a "freezer" of append-only files that can live on a cheaper disk.

Erigon stores flat state. An account is one key lookup, not a walk down the trie. Erigon computes the state root incrementally during its Execution stage and doesn't keep the trie as the source of truth (Erigon architecture). Its datadir has two parts: chaindata/, a small MDBX database with the latest state and recent changes, and snapshots/, large immutable .seg files with older blocks and history. A finished snapshot file is byte-identical on every Erigon node, which is why Erigon can distribute history over BitTorrent instead of re-executing it during sync.

The trade-off is the usual one. Geth's layout follows the protocol's own data structure closely, which keeps proofs (eth_getProof) natural and the code close to the specification. Erigon's layout optimises for disk size and read speed, and does more work to produce the root.

Sync: snap sync vs staged sync

Geth defaults to snap sync (sync modes). It takes a recent block header from its consensus client, downloads headers, bodies and receipts, downloads the state at a recent block as trie leaves with range proofs, rebuilds the trie locally, and then "heals" the parts that changed while it was downloading. After that it follows the chain block by block. --syncmode full executes every block from genesis instead, which is slower but verifies every state transition itself. Either way Geth needs a consensus client to sync at all.

Erigon uses staged sync: a pipeline of stages (snapshots, headers, bodies, senders, execution, finalisation), each run across the whole block range before the next starts, with progress saved after each one so a restart resumes rather than starting over. In Erigon 3 the first stage, OtterSync, downloads history as snapshot files, so most of a fresh sync is download rather than re-execution. Erigon's own measurement, made in September 2026 with a download rate capped at 400 Mbps, was about 5 h 40 m for a mainnet full node and about 14 h 20 m for an archive node (hardware requirements). Erigon says the bandwidth cap, not the hardware, set those times, so treat them as an order of magnitude.

Full vs archive: disk and what each can answer

A full node keeps recent state and answers questions about the present. An archive node also keeps the state after every block back to genesis, so it can answer "what was this balance at block 4,000,000?" without re-executing history. ethereum.org's archive node page puts a mainnet archive at roughly 2-3 TB for Erigon, Reth and Geth with its path-based archive, and 12 TB or more for Besu and Nethermind. The clients' own figures:

Client and mode Published figure (source and date)
Erigon archive (--prune.mode=archive) 2.25 TB used on mainnet, 4 TB disk recommended (Erigon, measured 2026-09-17)
Erigon full (--prune.mode=full, the default) 534.94 GB used, 2 TB disk recommended (same page)
Geth path-based archive About 2 TB with full flat state history; about 6.5 TB if it also keeps historical trie nodes (Geth)
Geth hash-based (legacy) archive Can exceed 20 TB on mainnet, and syncing one from genesis may take months (same page)
Reth archive (the default) At least 2.8 TB; full node (--full) at least 1.2 TB (Reth, as of 2025-06-23)

The chain grows, so check the current page before you buy disks.

Geth's path-based archive (Geth 1.16 and later, run with --gcmode archive --history.state=0 on a full sync) serves historical state from the same reverse diffs it keeps for reorgs, plus an index of which blocks changed which account. Two limits matter for data work: historical state is only available once Geth has finished building that index, and historical eth_getProof needs Geth 1.17 or later with --history.trienode set, because proofs need the historical trie nodes that the flat history doesn't keep. Erigon lists historical eth_getProof among its features (why Erigon).

Erigon's pruning modes are a retention choice made before the first start, not a sync mode: archive keeps everything, full (the default) keeps a recent window, blocks keeps every block and receipt but only recent state, and minimal keeps the least (pruning modes). Switching mode means deleting chaindata/ and syncing again. Geth has a related tool for full nodes: geth prune-history deletes pre-Merge block bodies and receipts while the node is stopped (history pruning).

Tracing: trace vs debug

This is the difference most visible to anyone who reads traces, for example to find internal ETH transfers or the call path of a failed transaction.

  • debug_* (Geth style). debug_traceTransaction, debug_traceCall, debug_traceBlockByNumber and debug_traceBlockByHash re-execute a transaction and hand each step to a tracer. With no tracer you get the opcode-level log; callTracer returns the call tree, prestateTracer the state touched, and you can write your own (built-in tracers). Every major client implements this namespace.
  • trace_* (Parity style). trace_transaction, trace_block, trace_replayTransaction, trace_call and trace_filter return a flat list of call frames, each placed by a traceAddress path. Erigon, Reth, Nethermind and Besu implement it (Erigon, Reth, Nethermind). Geth does not: its documented namespaces include eth, net, web3, debug, txpool and admin, but no trace (Geth RPC).

trace_filter is the one with no Geth equivalent: it returns every trace in a block range that matches a sender or recipient. On a Geth-style node you get the same data by calling debug_traceBlockByNumber block by block and filtering it yourself.

Here is the same transaction, a USDC transfer, traced both ways on a public Ethereum endpoint on 21 November 2026. USDC is a proxy contract, so the call is forwarded with a DELEGATECALL. The commands below call GoldRush JSON-RPC, which takes your key in an Authorization: Bearer header; for another node, change RPC_URL and drop that header if the node doesn't need it. The outputs shown are from the public endpoint:

RPC_URL=https://rpc.goldrushdata.com/v1/eth-mainnet curl "$RPC_URL" -H "Authorization: Bearer $GOLDRUSH_API_KEY" -H "Content-Type: application/json" \  -d '{"jsonrpc":"2.0","id":1,"method":"trace_transaction","params":["0x7934983564faf07cdef46e530110e169b2984e5c3dd32922bd5ed2b4fe67bee9"]}' curl "$RPC_URL" -H "Authorization: Bearer $GOLDRUSH_API_KEY" -H "Content-Type: application/json" \  -d '{"jsonrpc":"2.0","id":2,"method":"debug_traceTransaction","params":["0x7934983564faf07cdef46e530110e169b2984e5c3dd32922bd5ed2b4fe67bee9",{"tracer":"callTracer"}]}'

trace_transaction returned a flat list (calldata and output trimmed, block and transaction hashes removed):

[  {    "action": {      "from": "0xbaa67174531f0c031f91a373f6788c7e821af2c5",      "callType": "call",      "gas": "0xa20a",      "input": "0xa9059cbb…",      "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",      "value": "0x0"    },    "blockNumber": 26465334,    "result": { "gasUsed": "0x9ecc", "output": "0x…01" },    "subtraces": 1,    "traceAddress": [],    "transactionPosition": 8,    "type": "call"  },  {    "action": {      "from": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",      "callType": "delegatecall",      "gas": "0x83a7",      "input": "0xa9059cbb…",      "to": "0x43506849d7c04f9138d1a2050bbf3a0c054402dd",      "value": "0x0"    },    "blockNumber": 26465334,    "result": { "gasUsed": "0x8253", "output": "0x…01" },    "subtraces": 0,    "traceAddress": [0],    "transactionPosition": 8,    "type": "call"  }]

debug_traceTransaction with callTracer returned one nested frame:

{  "from": "0xbaa67174531f0c031f91a373f6788c7e821af2c5",  "gas": "0xf672",  "gasUsed": "0xf334",  "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",  "input": "0xa9059cbb…",  "output": "0x…01",  "calls": [    {      "from": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",      "gas": "0x83a7",      "gasUsed": "0x8253",      "to": "0x43506849d7c04f9138d1a2050bbf3a0c054402dd",      "input": "0xa9059cbb…",      "output": "0x…01",      "value": "0x0",      "type": "DELEGATECALL"    }  ],  "value": "0x0",  "type": "CALL"}

Same calls, two shapes, and one trap: the top-level gas. callTracer reports the whole transaction (0xf334, 62,260 gas, which matches the receipt), while trace_transaction reports only the execution after the intrinsic cost (0x9ecc, 40,652). The difference, 21,608, is exactly the 21,000 base cost plus 16 gas for each of the 28 non-zero calldata bytes and 4 for each of the 40 zero bytes. The inner frame agrees in both formats (0x8253). If you merge traces from a mixed fleet of nodes, normalise them first. This script fetches both formats and walks the callTracer tree into the same rows as the trace_* list.

Prerequisites: Node.js 18 or later (for the global fetch) and no packages. Save it as traces.mjs. By default it calls GoldRush JSON-RPC, so set GOLDRUSH_API_KEY; if you set RPC_URL to your own node instead, that node must have both the debug and trace namespaces enabled, or the first call throws (a Geth node has no trace_transaction). Run it with node traces.mjs <txHash>:

// traces.mjs. Usage: node traces.mjs <txHash>   (Node 18+)const RPC_URL = process.env.RPC_URL ?? "https://rpc.goldrushdata.com/v1/eth-mainnet";const headers = { "Content-Type": "application/json" };if (process.env.GOLDRUSH_API_KEY) headers.Authorization = `Bearer ${process.env.GOLDRUSH_API_KEY}`; async function rpc(method, params) {  const res = await fetch(RPC_URL, {    method: "POST",    headers,    body: JSON.stringify({ jsonrpc: "2.0", id: 1, method, params }),  });  const body = await res.json();  if (body.error) throw new Error(`${method}: ${body.error.message}`);  return body.result;} // trace_* (Erigon, Reth, Nethermind, Besu): a flat list, each row placed by its traceAddress.const fromParity = (rows) =>  rows.map((t) => ({    path: t.traceAddress.join(".") || "root",    kind: (t.action.callType ?? t.type).toUpperCase(),    to: t.action.to,    gasUsed: BigInt(t.result?.gasUsed ?? 0),  })); // debug_* callTracer (Geth and the others): one nested frame. Walk it depth first to get the same rows.function fromCallTracer(frame, path = []) {  const row = {    path: path.join(".") || "root",    kind: frame.type,    to: frame.to,    gasUsed: BigInt(frame.gasUsed),  };  return [row, ...(frame.calls ?? []).flatMap((child, i) => fromCallTracer(child, [...path, i]))];} const tx = process.argv[2];const parity = fromParity(await rpc("trace_transaction", [tx]));const geth = fromCallTracer(await rpc("debug_traceTransaction", [tx, { tracer: "callTracer" }])); for (const [i, p] of parity.entries()) {  const g = geth[i];  console.log(`${p.path}\t${p.kind}\t${p.to}\tgasUsed trace_=${p.gasUsed} debug_=${g.gasUsed}`);}console.log(`root gas difference: ${geth[0].gasUsed - parity[0].gasUsed} (intrinsic gas)`);

Run against the public endpoint for the transaction above, it printed:

root	CALL	0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48	gasUsed trace_=40652 debug_=622600	DELEGATECALL	0x43506849d7c04f9138d1a2050bbf3a0c054402dd	gasUsed trace_=33363 debug_=33363root gas difference: 21608 (intrinsic gas)

By default the script calls GoldRush JSON-RPC, which serves debug_* and trace_* on EVM chains from upstream nodes of different software and falls back to a normalised translation where one namespace is missing (support varies by chain); set GOLDRUSH_API_KEY, or point RPC_URL at any node that has both namespaces enabled. The debug_* and trace_* reference lists the methods and archive depth per chain.

Handle errors from GoldRush JSON-RPC

traces.mjs throws whenever the response has an error field. On GoldRush JSON-RPC, authentication and billing failures come back as a standard JSON-RPC error object. Sent with no key, or a made-up one, on 22 November 2026, the endpoint answered with HTTP 200 and this body:

{  "jsonrpc": "2.0",  "error": {    "code": -32600,    "message": "missing or malformed api key",    "data": null  }}

The script then stops with trace_transaction: missing or malformed api key: set GOLDRUSH_API_KEY in the shell that runs it. The JSON-RPC authentication docs describe the missing-key case as HTTP 401 with code -32001, and list -32002 (HTTP 403, the key has no JSON-RPC entitlement), -32003 (HTTP 402, out of credits) and -32005 (HTTP 429, rate limited: retry after Retry-After). Because the script checks the error field rather than the HTTP status, it stops on any of them.

Consensus: Caplin vs a separate client

Geth needs a separate consensus client. You run two programs, share a JWT secret between them, and connect them over the Engine API on port 8551.

Erigon ships Caplin, a consensus client built into the same binary and on by default, so one erigon command runs both layers with no JWT secret to manage (Caplin). Caplin can serve the Beacon API (once enabled with --beacon.api), keep its own archive of historical beacon states, blocks and blobs, and act as the consensus side of a validator. If you'd rather keep Lighthouse, Prysm, Teku or another client, start Erigon with --externalcl and connect it over the standard Engine API.

One binary is simpler to run and upgrade. Two separate clients let you swap either side on its own, and spread client diversity across both layers.

Reth, Nethermind and Besu

Erigon and Geth aren't the only choices, and comparisons often include these three:

  • Reth (Rust, started by Paradigm). ethereum.org describes it as production-ready and suited to RPC, MEV and indexing work. It runs as an archive node by default; --full keeps a 10,064-block window of history and --minimal keeps less (Reth pruning). It implements both debug_* and trace_*, plus ots_* for Otterscan. The 2024 version of this page called it "still under development"; that is no longer true.
  • Nethermind (C#, .NET). Comes with monitoring dashboards and JSON-RPC tracing, including the trace_* namespace. Its archive mode needs far more disk than Erigon's or Reth's (12 TB or more on mainnet, per ethereum.org).
  • Besu (Java, Apache 2.0). Runs on public and permissioned networks. Its default storage format, Bonsai, keeps only recent state and must not be used for an archive; archive nodes use the Forest of Tries format, which stores trie nodes by hash and needs much more disk (Besu storage formats). It implements trace_* and debug_*.

Running a minority client helps the network: if one client has a consensus bug, the share of nodes running other clients decides how much damage it does.

Which client to choose

There is no single winner; it depends on what the node is for.

If you need… Good fits
A validator or personal node with the most-used, best-documented client Geth with any consensus client
A validator in one binary, with no separate consensus client Erigon with Caplin
A mainnet archive on one disk Erigon, Reth, or Geth's path-based archive (all around 2-3 TB)
trace_* traces, trace_filter over block ranges, Otterscan Erigon or Reth
Historical eth_getProof Erigon, or Geth 1.17+ with historical trie nodes kept
To scale RPC reads separately from block processing Erigon with several rpcdaemon processes over one node; or a provider
Full block and receipt history without archive state Erigon --prune.mode=blocks
Enterprise support or a permissioned network Besu or Nethermind

Indexers and data providers often run more than one: an Erigon or Reth archive for history and traces, and Geth or another client for the chain tip, so that a bug in one client doesn't stop the pipeline.

When you don't need to run either

Most apps don't need their own archive node. If you need historical state or traces now and then, a hosted endpoint gives you archive depth without the disks: GoldRush JSON-RPC uses the same API key as the other GoldRush APIs and routes each call across several upstream providers.

If what you actually want is decoded data, such as a transaction with its internal transfers, a raw trace is the hard way. The GoldRush Foundational API does the indexing: the Transaction API (GET /v1/{chainName}/transaction_v2/{txHash}/) returns a transaction with its decoded event logs and, with with-internal=true, its internal_transfers (sender, recipient and value of each internal native-token transfer). Credit cost: 0.1 per call, plus a per-item charge for internal transfers shown on the endpoint page. Internal transfers are available on a subset of EVM chains, listed under traces support.

Frequently asked questions

What is the main difference between Erigon and Geth?

Storage and features around it. Geth stores Ethereum state as a Merkle Patricia trie and needs a separate consensus client. Erigon stores state as flat key-value pairs, syncs in stages from snapshot files, includes the Caplin consensus client, and adds the Parity-style trace_* API. Both follow the same protocol rules and serve the same standard JSON-RPC methods.

Is Erigon an archive node by default?

No. Erigon 3 runs as a full node by default (--prune.mode=full) and keeps only a recent window of state and blocks. Run --prune.mode=archive from the first start for a full archive; switching later means re-syncing. Reth, by contrast, is an archive node unless you pass --full or --minimal.

How much disk does an Erigon or Geth archive node need?

ethereum.org puts a mainnet archive at roughly 2-3 TB for Erigon, Reth and Geth's path-based archive. Erigon reported 2.25 TB used in September 2026 and recommends a 4 TB disk; Geth's docs say about 2 TB for its path-based archive, about 6.5 TB with historical trie nodes, and over 20 TB for the legacy hash-based archive. Besu and Nethermind archives need 12 TB or more.

Does Geth support trace_transaction and trace_filter?

No. Geth implements the debug_* tracing methods, such as debug_traceTransaction with the callTracer, but not the Parity-style trace_* namespace. Erigon, Reth, Nethermind and Besu implement trace_*. To replace trace_filter on Geth, trace each block in the range with debug_traceBlockByNumber and filter the results.

Why do trace_transaction and debug_traceTransaction report different gas used?

For the top-level call, callTracer reports the transaction's total gas, including the intrinsic cost (21,000 plus calldata), while trace_transaction reports only what execution used after it. Inner calls match. In the USDC transfer above the difference was exactly 21,608 gas.

Can I switch from Geth to Erigon without downtime?

Yes. Erigon's documentation recommends syncing Erigon alongside your existing client on a different P2P port, then switching your validator or traffic once it's synced. The two store data differently, so Erigon syncs its own database rather than reusing Geth's.

Next steps

Get new guides by email

New tutorials and best practices for building with blockchain data, sent as they're published.