Currently there are 35 million unspent transaction outputs. Is there a site somewhere where I can query this data to see, for instance, how many UTXO's exist with a value less than 20,000 satoshis? Or the total unique scriptPubKey values found in a UTXOs?
Asked
Active
Viewed 2,415 times
7
priestc
- 301
- 1
- 2
- 8
-
To my knowledge, there is no such site. You could get this with some coding. For example accessing a node's levelDB; see chainstate db keys in the accepted answer of [this](http://bitcoin.stackexchange.com/questions/28168/what-are-the-keys-used-in-the-blockchain-leveldb-ie-what-are-the-keyvalue-pair) question. – karask Apr 25 '16 at 08:17
1 Answers
2
The standard bitcoind core daemon has no methods to query the UTXO set for reasons I don't know: it should be trivial to give access to it even on a pruned node since it needs to have the full UTXO set at any time to validate a new block.
Anyway a pull request seems in progress to add this capability: https://github.com/bitcoin/bitcoin/pull/8952
There are anyway third party apis to query a single address, for example https://www.blockcypher.com/dev/ or https://chain.so/api
Alessandro Polverini
- 191
- 7
-
The pull request you refer to improves the `listunspent` RPC, which queries the wallet. It does not give you access to the network-side UTXO set. The does exist a `gettxout` RPC, however. – Pieter Wuille Apr 17 '17 at 07:43
-
Thanks, I misinterpreted. Anyway I'm still at a loss in understanding why there is no way to query the UTXO. A simple command to check if tx/index is in the UTXO would be a great start, for example. – Alessandro Polverini Apr 17 '17 at 16:33
-
1
-
-
No, I haven't find any method to list all the UTXO: you already have to know it to query one out of a tx. – Alessandro Polverini Jun 27 '17 at 09:28