<p>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.</p>

<p>Anyway a pull request seems in progress to add this capability:
<a href="https://github.com/bitcoin/bitcoin/pull/8952" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/pull/8952</a></p>

<p>There are anyway third party apis to query a single address, for example <a href="https://www.blockcypher.com/dev/" rel="nofollow noreferrer">https://www.blockcypher.com/dev/</a> or <a href="https://chain.so/api" rel="nofollow noreferrer">https://chain.so/api</a></p>

CC BY-SA 3.0
2017-04-17T07:43:58.167Z
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
CC BY-SA 3.0
2017-04-17T16:33:20.510Z
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
CC BY-SA 3.0
2017-04-17T17:42:47.277Z
That exists, it is called `gettxout`.
Pieter Wuille
CC BY-SA 3.0
2017-06-26T13:14:04.927Z
@AlessandroPolverini did you find the answer to your question?
Denis Leonov
CC BY-SA 3.0
2017-06-27T09:28:54.420Z
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
CC BY-SA 3.0
2017-04-17T06:20:20.963Z
2017-04-17T06:30:35.377Z
2017-04-17T06:30:35.377Z
Alessandro Polverini
<p>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 <code>scriptPubKey</code> values found in a  UTXOs?</p>

CC BY-SA 3.0
2016-04-25T08:17:37.790Z
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
<utxo><live-data>
Where can I query the UTXO database?
priestc
# Where can I query the UTXO database?

(Asked by: username_0 on 2016-04-14)

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?

**Tags:** utxo, live-data

> **Comments:**
> **username_1**: 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.  

---

## 1 answers

### Answer by username_2 on 2017-04-17. Score: 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>

> **Comments:**
> **username_3**: 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.  
> **username_2**: 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.  
> **username_3**: That exists, it is called `gettxout`.  
> **username_4**: @AlessandroPolverini did you find the answer to your question?  
> **username_2**: 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.  

---

