-
Notifications
You must be signed in to change notification settings - Fork 33
Chainstate DB Dumper
Enrico Rubboli edited this page Apr 10, 2026
·
1 revision
The chainstate-db-dumper reads the Mintlayer chainstate LMDB database and exports block information to a CSV file. It is a developer/diagnostic tool.
chainstate-db-dumper --chain-type <CHAIN_TYPE> --output-file <OUTPUT_FILE> [OPTIONS]-
-c, --chain-type <CHAIN_TYPE>: The chain type of the database to read.- Possible values:
mainnet,testnet,regtest,signet
- Possible values:
-
-o, --output-file <OUTPUT_FILE>: Path to the output CSV file.
-
-d, --db-dir <DB_DIR>: Path to thechainstate-lmdbdirectory. Defaults to the standard location for the specified chain type. -
--mainchain-only <MAINCHAIN_ONLY>: Only dump mainchain blocks (skip orphans).- Default:
true - Possible values:
true,false
- Default:
-
--from-height <FROM_HEIGHT>: Block height to start dumping from.- Default:
0
- Default:
-
--fields <FIELDS>: Comma-separated list of fields to include in the CSV output.- Default (when
--mainchain-only true):height,id,timestamp,pool_id,target - Default (when
--mainchain-only false):height,is_mainchain,id,timestamp,pool_id,target,parent_id - All possible fields:
height,is_mainchain,id,timestamp,pool_id,target,chain_trust,status,parent_id
- Default (when
chainstate-db-dumper \
--chain-type mainnet \
--output-file /tmp/chainstate.csv \
--from-height 500000 \
--fields height,id,timestamp- Home
- Installing Mintlayer
- Upgrade Mintlayer
- Node
- Addresses
- Wallet CLI
- Wallet RPC
- API
- Advanced Tools
- Guides
- CHANGELOG