Post
Topic
Board Development & Technical Discussion
Re: Block explorers oligopoly.
by
coinableS
on 31/05/2021, 05:08:47 UTC
scantxoutset

You can run a pruned node on your machine locally and scan for UTXO's for ANY address (doesn't have to be imported to your wallet) by using the scantxoutset command. It takes a few minutes, but not nearly as long as a rescan. Doesn't take up a ton of space, and better than using a blockexplorer.

To query one address: scantxoutset start '[{"desc":"addr(1SomeAddress)"}]'
Or for multiple addresses: scantxoutset start '[{"desc":"addr(1SomeAddress)"},{"desc":"addr(1AnotherAddressToCheck)"}]'
Since a pruned node does not have all transactions in the block chain, only those limited to what the pruned node stores, it cannot show you any long term history and will certainly return nothing for any confirmed transactions older than the amount pruned.

In other words you've never used it yourself and don't understand how pruned nodes work.

scantxoutset scans the utxo set to match a certain output descriptor. Pruned nodes don't have all the block data, but they have a full UTXO set that's precisely how pruned nodes work.