Get all transactions for address not in Wallet

+2 votes

I know this is fairly similar to this question, however I was wondering if any new features have been added, or are planned to make this easier.

I am trying to get all transactions associated with an address that is not in the wallet of the current user.

I have written a workaround searching the blockchain manually, using the commands mentioned in the other question (`listblock`, `getrawtransaction`), however this is pretty slow and CPU intensive. Are there any API commands to help make this easier?

asked Mar 31, 2017 by Michael

1 Answer

+1 vote

You can use the importaddress API to add a "watch-only" address to the node's wallet, and then you can retrieve all transactions relating to that address in the same way as an address belonging to the node. However this requires a blockchain rescan for the address, when it is first added.

Also, as an aside, if you call getblock with verbose value of 4, you see the full information about every transaction in the block in the immediate API response.

answered Mar 31, 2017 by MultiChain
...