<p>The command computes some statistics about the database of unspent transaction output that is maintained by a bitcoin node.</p>

<ul>
<li>height: the height of the block up to which the UTXO set is accurate. This may be lower than the result of getinfo's height, as the node does not flush the UTXO set from caches after every block.</li>
<li>bestblock: the hash of the block up to which the UTXO is accurate.</li>
<li>transactions: the number of distinct transactions to which the unspent outputs belong (or: the number of transactions that have at least one non-spent output).</li>
<li>txouts: the number of unspent outputs</li>
<li>bytes_serialized: how large the database is in bytes, should we serialize it.</li>
<li>hash_serialized: the hash of the entire serialized database. You can use this value to compare with other nodes (if they are at the same block), to verify the UTXO set's integrity.</li>
<li>total_amount: value (in BTC) of all unspent outputs together. This is the best possible guess for the amount of currency in circulation.</li>
</ul>

CC BY-SA 3.0
2014-04-18T07:04:38.827Z
2014-04-18T07:04:38.827Z
Pieter Wuille
<p>Could you please explain <code>gettxoutsetinfo</code>, what is it used for? What are the different fields in the output?</p>
<p>I assume that it's used to calculate the amount of the unspent trasaction outputs in the blockchain. What is <code>bytes_serialized</code> and <code>hash_serialized</code>?</p>
<pre class="lang-json prettyprint-override"><code>{
  &quot;height&quot; : 225494,
  &quot;bestblock&quot; : &quot;00000000eb0443fd7dc4a1ed5c686a8e995057805f9a161d9a5a77a95e72b7b6&quot;,
  &quot;transactions&quot; : 335344,
  &quot;txouts&quot; : 2221582,
  &quot;bytes_serialized&quot; : 72130407,
  &quot;hash_serialized&quot; : &quot;3d14832b1b468f52ce942d4b9dc0c76a54fa6865207ff64540105403e3109f43&quot;,
  &quot;total_amount&quot; : 10886823.50380013
}
</code></pre>

<transactions>
What is gettxoutsetinfo used for?
Farghaly
# What is gettxoutsetinfo used for?

(Asked by: username_0 on 2014-04-17)

Could you please explain `gettxoutsetinfo`, what is it used for? What are the different fields in the output?

I assume that it's used to calculate the amount of the unspent trasaction outputs in the blockchain. What is `bytes_serialized` and `hash_serialized`?

```json
{
  "height" : 225494,
  "bestblock" : "00000000eb0443fd7dc4a1ed5c686a8e995057805f9a161d9a5a77a95e72b7b6",
  "transactions" : 335344,
  "txouts" : 2221582,
  "bytes_serialized" : 72130407,
  "hash_serialized" : "3d14832b1b468f52ce942d4b9dc0c76a54fa6865207ff64540105403e3109f43",
  "total_amount" : 10886823.50380013
}

```

**Tags:** transactions


---

## 1 answers

### Answer by username_1 on 2014-04-18. Score: 7 | Accepted answer

The command computes some statistics about the database of unspent transaction output that is maintained by a bitcoin node.

* height: the height of the block up to which the UTXO set is accurate. This may be lower than the result of getinfo's height, as the node does not flush the UTXO set from caches after every block.
* bestblock: the hash of the block up to which the UTXO is accurate.
* transactions: the number of distinct transactions to which the unspent outputs belong (or: the number of transactions that have at least one non-spent output).
* txouts: the number of unspent outputs
* bytes\_serialized: how large the database is in bytes, should we serialize it.
* hash\_serialized: the hash of the entire serialized database. You can use this value to compare with other nodes (if they are at the same block), to verify the UTXO set's integrity.
* total\_amount: value (in BTC) of all unspent outputs together. This is the best possible guess for the amount of currency in circulation.


---

