Datadir Structure
Layout of the Erigon data directory and the role of each subdirectory.
Directory Layout
datadir/
chaindata/ # "Recently-updated Latest State", "Recent History", "Recent Blocks"
snapshots/ # Immutable historical data stored as .seg files
domain/ # Latest State (4 domains: account, storage, code, commitment)
history/ # Historical values of each domain
idx/ # Inverted indices — used for search/filter/union/intersect queries
# (e.g. eth_getLogs, trace_transaction)
accessor/ # Additional generated indices with random-touch read pattern
# Only serves Get requests (no search/filter)
txpool/ # Pending transactions. Safe to delete.
nodes/ # P2P peer data. Safe to delete.
temp/ # Temporary sort buffers for data larger than RAM.
# Can grow up to ~100 GB. Cleaned automatically at startup.Typical Disk Usage (Ethereum mainnet, Archive, Nov 2024)
du -hsc /erigon/chaindata
15G /erigon/chaindata
du -hsc /erigon/snapshots/*
120G /erigon/snapshots/accessor
300G /erigon/snapshots/domain
280G /erigon/snapshots/history
430G /erigon/snapshots/idx
2.3T /erigon/snapshotsHistory on Cheap Disk
Last updated
Was this helpful?