<p>Yes. <code>txindex=1</code> 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.</p>

CC BY-SA 4.0
2018-09-10T15:22:47.850Z
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)?
mecampbellsoup
CC BY-SA 4.0
2018-09-10T15:52:04.053Z
A rescan can be triggered using the `rescanblockchain` command.
Ava Chow
CC BY-SA 3.0
2017-06-23T06:14:43.467Z
2017-06-23T06:14:43.467Z
Ava Chow
<p><a href="https://bitcoin.org/en/developer-reference#importprivkey" rel="nofollow noreferrer">Documentation for <code>importprivkey</code> RPC command</a> 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.</p>

<p>Is the rescan needed if the node is configured as <code>txindex=1</code>?</p>

<json-rpc><import><private-key-import><rescan>
Does `importprivkey` need a rescan even in a txindex=1 node?
knocte
# Does `importprivkey` need a rescan even in a txindex=1 node?

(Asked by: username_0 on 2017-06-23)

[Documentation for `importprivkey` RPC command](https://bitcoin.org/en/developer-reference#importprivkey) 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`?

**Tags:** json-rpc, import, private-key-import, rescan


---

## 1 answers

### Answer by username_1 on 2017-06-23. Score: 3 | Accepted answer

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.

> **Comments:**
> **username_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)?  
> **username_1**: A rescan can be triggered using the `rescanblockchain` command.  

---

