<p>It is a hash of the entire serialized UTXO set. You can use to verify that a node's UTXO set is uncorrupted (by comparing it with another node that runs the same command, at the same height).</p>
<p>The <code>_2</code> prefix is to indicate the hashing algorithm that is used. Earlier versions used a different algorithm that became very hard to support efficiently. It's just there so people don't expect the hashes to be comparable between old and new nodes.</p>

CC BY-SA 4.0
2021-04-13T07:10:46.997Z
2021-04-13T08:01:12.447Z
2021-04-13T08:01:12.447Z
Pieter Wuille
<p>An example of the output of this RPC command is as follows.</p>
<pre><code> 1  &quot;height&quot;:n,     (numeric) The current block height (index)
 2  &quot;bestblock&quot;: &quot;hex&quot;,   (string) The hash of the block at the tip of the chain
 3  &quot;transactions&quot;: n,      (numeric) The number of transactions with unspent outputs
 4  &quot;txouts&quot;: n,            (numeric) The number of unspent transaction outputs
 5  &quot;bogosize&quot;: n,          (numeric) A meaningless metric for UTXO set size
 6  &quot;hash_serialized_2&quot;: &quot;hash&quot;, (string) The serialized hash
 7  &quot;disk_size&quot;: n,         (numeric) The estimated size of the chainstate on disk
 8  &quot;total_amount&quot;: x.xxx          (numeric) The total amount
}
</code></pre>
<p>What's the meaning of the sixth line &quot;hash_serialized_2&quot;? Whose hash is this referring to?</p>

<bitcoin-core><json-rpc>
What does the sixth line in the output of the Bitcoin Core GUI RPC command "gettxoutsetinfo" mean?
GoneV
# What does the sixth line in the output of the Bitcoin Core GUI RPC command "gettxoutsetinfo" mean?

(Asked by: username_0 on 2021-04-09)

An example of the output of this RPC command is as follows.

```
 1  "height":n,     (numeric) The current block height (index)
 2  "bestblock": "hex",   (string) The hash of the block at the tip of the chain
 3  "transactions": n,      (numeric) The number of transactions with unspent outputs
 4  "txouts": n,            (numeric) The number of unspent transaction outputs
 5  "bogosize": n,          (numeric) A meaningless metric for UTXO set size
 6  "hash_serialized_2": "hash", (string) The serialized hash
 7  "disk_size": n,         (numeric) The estimated size of the chainstate on disk
 8  "total_amount": x.xxx          (numeric) The total amount
}

```

What's the meaning of the sixth line "hash\_serialized\_2"? Whose hash is this referring to?

**Tags:** bitcoin-core, json-rpc


---

## 1 answers

### Answer by username_1 on 2021-04-13. Score: 4 | Accepted answer

It is a hash of the entire serialized UTXO set. You can use to verify that a node's UTXO set is uncorrupted (by comparing it with another node that runs the same command, at the same height).

The `_2` prefix is to indicate the hashing algorithm that is used. Earlier versions used a different algorithm that became very hard to support efficiently. It's just there so people don't expect the hashes to be comparable between old and new nodes.


---

