3

Since the Standard Client version 0.8 removed the full index of all historical transactions, some Bitcoin applications that relied on that functionality have stopped working. For example, one is no longer able to find out the sender of a given transaction by pure RPC calls. How can one access that transaction detail in the newer versions of the Bitcoin client?

1
  • You cannot find the sender of a transaction in any case. You can find the addresses the input coins were previously sent to, but that is not necessarily the sender of the transaction, and not useful in general. Commented Jun 29, 2013 at 13:38

1 Answer 1

5

Two new command-line or bitcoin.conf file commands have been added in the 0.8 release that allow for historical transactions to be accessible by recreating the old index:

txindex : maintains an extra index of old, spent transaction ids so they will be found by the getrawtransaction JSON-RPC method.

reindex : rebuild block and transaction indices from the downloaded block data.

[...]

you must run once with -txindex=1 -reindex=1 to rebuild block-chain indices

3
  • 1
    How do I make sure the Bitcoin client maintains this transaction index always even when it frequently synchronises and download new blocks? Commented Nov 28, 2013 at 15:40
  • @Myth17 I think it keeps the index after you set the index flag.
    – ThePiachu
    Commented Nov 28, 2013 at 21:07
  • I am facing issues with raw transactions even after with flags set: bitcoin.stackexchange.com/questions/17451/… Commented Nov 28, 2013 at 21:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.