<p>The fraction of the problem solved for me by using Electrumx server. Electrumx rescan block files and indexed trx history information to the another database. It taken about 3 days. Therefore, I could get trx history and some other blockchain information using RPC call or opening web socket connections to the electrumx server.</p>

CC BY-SA 4.0
2023-11-07T14:25:50.480Z
2023-11-07T14:25:50.480Z
mjdimn
<p>You can rescan an address, or a bunch of addresses as defined by a range descriptor, using the <code>scantxoutset</code> RPC command. This will give you the current UTxOs paying to this (set of) address(es).</p>
<p>However, to rescan the transaction history you will have to use a watchonly wallet and perform a block chain rescan.</p>

CC BY-SA 4.0
2023-10-26T17:32:57.703Z
Actually I need to preprocess block chain addresses and rescan all balanced bitcoin addresses so far such that user does not sense slow rescan process. How do it?
mjdimn
CC BY-SA 4.0
2023-10-26T07:55:37.390Z
2023-10-26T08:04:58.833Z
2023-10-26T08:04:58.833Z
Antoine Poinsot
<p>I currently use the <code>importaddress</code> wallet RPC on Bitcoin Core to rescan the transaction history related to an address, which I then query using <code>listtransactions</code>. The address import takes about a hour as it necessitates to rescan the whole block chain.</p>
<p>Is there a faster way to query the historical transactions associated with an address using Bitcoin Core?</p>

CC BY-SA 4.0
2023-10-26T08:01:48.517Z
Hey, i've edited your post to make it clearer. It contained two questions though so i only kept the first one. Could you open a new question to ask about the providers?
Antoine Poinsot
<bitcoin-core><transactions><json-rpc><rescan><importaddress>
Bitcoin Core RPC for transactions of a new address without rescanning
mjdimn
# Bitcoin Core RPC for transactions of a new address without rescanning

(Asked by: username_0 on 2023-10-26)

I currently use the `importaddress` wallet RPC on Bitcoin Core to rescan the transaction history related to an address, which I then query using `listtransactions`. The address import takes about a hour as it necessitates to rescan the whole block chain.

Is there a faster way to query the historical transactions associated with an address using Bitcoin Core?

**Tags:** bitcoin-core, transactions, json-rpc, rescan, importaddress

> **Comments:**
> **username_1**: Hey, i've edited your post to make it clearer. It contained two questions though so i only kept the first one. Could you open a new question to ask about the providers?  

---

## 2 answers

### Answer by username_0 on 2023-11-07. Score: 1 | Accepted answer

The fraction of the problem solved for me by using Electrumx server. Electrumx rescan block files and indexed trx history information to the another database. It taken about 3 days. Therefore, I could get trx history and some other blockchain information using RPC call or opening web socket connections to the electrumx server.


---

### Answer by username_1 on 2023-10-26. Score: 3

You can rescan an address, or a bunch of addresses as defined by a range descriptor, using the `scantxoutset` RPC command. This will give you the current UTxOs paying to this (set of) address(es).

However, to rescan the transaction history you will have to use a watchonly wallet and perform a block chain rescan.

> **Comments:**
> **username_0**: Actually I need to preprocess block chain addresses and rescan all balanced bitcoin addresses so far such that user does not sense slow rescan process. How do it?  

---

