db/: the MDBX database, including state, history indexes, stage checkpoints, and metadata tablesstatic_files/: append-only historical segments such as headers, transactions, and receipts
Info
Summarize the MDBX file, tables, freelist, and static-file store.
Tables
Show entry and page statistics for every registered Reth table.
Version
Compare the database schema with the schema supported by Rex.
Prerequisites
Pass the chain-specific data directory that containsdb/:
--datadir ./alice, use ./alice here—not ./alice/db. The --datadir option must appear between db and the final command.
No HTTP namespace is required, and the global --rpc option is not used by database commands.
Safety Boundary
db info and db tables use the database API from Reth v1.9.3, pinned to its exact source revision. They verify the on-disk schema version before opening MDBX and then use open_db_read_only. The commands never create tables, migrate schemas, delete data, or start a write transaction.
db version only reads db/database.version; it does not open MDBX.
You can inspect a running node. MDBX table statistics come from one read transaction. For a fully stable comparison that also includes filesystem metadata from static_files/, pause database activity while taking the measurement.