0

Documentation for importprivkey RPC command has an optional boolean argument called "rescan" which hints that the user may want to rescan the blockchain to be able to see previous deposits to this address.

Is the rescan needed if the node is configured as txindex=1?

1 Answer 1

3

Yes. txindex=1 is not related to the wallet and the wallet does not know about the txindex nor does it care. What the wallet really cares about is transaction output information and which transactions are related to addresses stored in the wallet. The txindex does not store any of that information, all it stores is the location of each transaction identified by transaction id. The actual contents of that transaction are not kept except in the raw transaction itself.

2
  • is there any explicit RPC command to trigger rescan? Say I want to import an address but only do rescans according to some schedule (i.e. when I expect the load on my Bitcoin node to be least in a give 24-hour interval)? Sep 10, 2018 at 15:22
  • A rescan can be triggered using the rescanblockchain command.
    – Andrew Chow
    Sep 10, 2018 at 15:52

Your Answer

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

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