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:
| Method | GETH | ERIGON |
|---|---|---|
debug_accountRange | available | one less argument is required |
eth_sign | available | the method has been deprecated |
eth_signTransaction | available | the method has been deprecated |
eth_sendTransaction | available | not available |
trace_block | not available | available |
trace_call | not available | available |
trace_callMany | not available | available |
trace_replayBlockTransactions | not available | available |
trace_replayTransaction | not available | available |
trace_transaction | not available | available |
txpool_inspect | available | not available |
debug_blockProfile | available | not available |
eth_coinbase | not available | available |
eth_submitWork | not available | available |
eth_submitHashrate | not available | available |
eth_protocolVersion | not available | available |
eth_getProof error on Erigon v3: hash sort failed
eth_getProof error on Erigon v3: hash sort failedWhen 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.
NoteGitHub 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
totalDifficulty from block schemaWith 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,
totalDifficultydetermined 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
totalDifficultyis 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.
NoteFor further context, see Erigon Issue #13012 and Ethereum Execution APIs PR #570.
Updated 7 days ago