Geth vs Erigon: Method Differences on Tatum EVM Nodes

Geth and Erigon differ in a few JSON-RPC methods; Erigon v3 serves eth_getProof only for the latest block, and block responses no longer include totalDifficulty.

Geth and Erigon are two Ethereum execution clients, and a few JSON-RPC methods behave differently between them. This page lists the differences you may see on Tatum EVM nodes: the method changes from the Optimism switch to Erigon, historical eth_getProof on Erigon v3, and the removed totalDifficulty block field.

Optimism update: transition from Geth to Erigon

In October 2024, Tatum moved Optimism (Mainnet) from Geth to Erigon to leverage improved stability and performance benefits that Erigon offers.

Testing before the switch showed that while a few methods behave differently, none of the affected methods were actively used by our customers. As a result, no disruption to existing workflows was expected.

📘

Transition Date: October 15-16, 2024

Summary of Changes: Geth vs. Erigon

Here is a comparison of the affected methods and their availability in Geth versus Erigon:

MethodGETHERIGON
debug_accountRangeavailableone less argument is required
eth_signavailablethe method has been deprecated
eth_signTransactionavailablethe method has been deprecated
eth_sendTransactionavailablenot available
trace_blocknot availableavailable
trace_callnot availableavailable
trace_callManynot availableavailable
trace_replayBlockTransactionsnot availableavailable
trace_replayTransactionnot availableavailable
trace_transactionnot availableavailable
txpool_inspectavailablenot available
debug_blockProfileavailablenot available
eth_coinbasenot availableavailable
eth_submitWorknot availableavailable
eth_submitHashratenot availableavailable
eth_protocolVersionnot availableavailable

eth_getProof error on Erigon v3: hash sort failed

When you query eth_getProof on chains running Erigon v3, you may get the following error:

{
  "jsonrpc": "2.0",
  "id": 0,
  "error": {
    "code": -32000,
    "message": "hash sort failed: loadIntoTable : subTrieRoot(...) != cellHash(...)"
  }
}

The error is caused by a limitation in the Erigon v3 client: eth_getProof does not support historical proofs on Erigon v3 for the time being, so only proofs for the latest block work. This change was introduced with the upgrade from Erigon v2 to v3, as part of the preparations for the Ethereum Pectra hard fork.

📘

Note

GitHub Issue #13180: “There is no support for historical proofs at the moment, so only fetching proofs for latest block will work.”

Removed totalDifficulty from block schema

With Ethereum's transition from Proof of Work (PoW) to Proof of Stake (PoS), some block fields became obsolete. One of them is totalDifficulty:

  • Under PoW, totalDifficulty determined the canonical chain by identifying the chain with the highest cumulative difficulty.
  • In PoS, chain selection and block validation rely on entirely different metrics, so totalDifficulty is unnecessary for protocol operations.

As a result, JSON-RPC calls to Ethereum and other EVM-compatible chains on Tatum no longer return the totalDifficulty field. This change aligns with updates to Erigon and the standardized execution API specification.

📘

Note

For further context, see Erigon Issue #13012 and Ethereum Execution APIs PR #570.


Did this page help you?