TLDR:Documentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
- The
missing trie nodeerror means you’re requesting historical state from a node that doesn’t have it. - Full nodes on EVM chains retain only the most recent ~128 blocks of state; everything older needs an archive node.
- The fix: query through an archive endpoint, or fall back to the latest state with a block tag like
"latest".
The error
You query an EVM node for state at a specific historical block and get back:Cause
Most EVM full nodes retain state only for a sliding window of the most recent blocks — Geth’s defaultgcmode=full window is roughly 128 blocks. The exact window varies by client (Geth, Reth, Nethermind, Besu) and chain. State queries — eth_getBalance, eth_getStorageAt, eth_call, eth_getCode, traces — against any block older than this window return missing trie node.
Erigon is the main exception: its staged-sync architecture stores all historical state by default, so an Erigon-based “full” node can answer historical queries that a Geth full node can’t.
Archive nodes keep the full state trie from genesis on all clients, so they answer historical queries at any block.
This also affects eth_simulateV1 on EVM full nodes — it can only simulate against the most recent ~128 blocks; older targets return missing trie node.
Solutions
Use an archive endpoint
Deploy a node in archive mode and switch your endpoint to it. On Chainstack, archive mode is available across all node types — Global Nodes, Trader Nodes, Dedicated Nodes, and Unlimited Nodes — on paid plans for supported protocols. See Protocols, modes, and types.Query the latest state
If you don’t actually need historical state, use the"latest" block tag (or omit the block parameter):
Use logs or receipts instead
For event-driven workloads,eth_getLogs and eth_getTransactionReceipt work on full nodes regardless of block age and don’t touch the state trie. See Understanding eth_getLogs limitations.
See also
- Protocols, modes, and types — full vs archive
- Throughput guidelines — related EVM range limits
- Debug & Trace APIs