THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Does Bitcoin Core txindex Support Pruning?

permalink THAMER
#archival-node#bitcoin#pruning#txindex

No, standard Bitcoin Core does not support enabling txindex together with pruning. The transaction index points to historical transaction locations in block files. Pruning discards old block data, making arbitrary historical retrieval incompatible with that index's purpose.

Are all indexes incompatible with pruning?

No. The basic block filter index and CoinStatsIndex support pruning, subject to access to historical data needed to build them. Their derived records can remain available even when old block files are removed. They cannot reconstruct the full contents of discarded blocks.

Do I need txindex to operate a wallet?

Not necessarily. A wallet can track its own transactions and use the node's current UTXO set without a global transaction index. Historical wallet rescans may still require block data that a pruned node no longer retains. Supplying a known block hash to getrawtransaction can also enable retrieval without txindex when that block is available.

Check the startup options and documentation of your installed Bitcoin Core release before changing storage settings. Disabling pruning does not automatically recreate previously deleted historical blocks.

Primary reference

Bitcoin Core initialization and option validation: https://github.com/bitcoin/bitcoin/blob/master/src/init.cpp

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects