gettxoutsetinfo

Input(s) 3

The gettxoutsetinfo RPC command returns detailed statistics about the state of the UTXO set, which represents all unspent transaction outputs on the blockchain. This includes information such as the total number of UTXOs, the total amount of bitcoin in those UTXOs, and the disk size used by the UTXO set.

How is this used?

This command is crucial for developers and analysts who need to understand the current state of the blockchain's UTXO set for performance analysis, blockchain optimization, or economic research. By providing a snapshot of unspent outputs, it helps in assessing the distribution and availability of funds across the network. The command's ability to generate UTXO set hashes also aids in verifying the integrity of the UTXO set across different nodes.

Request

method

gettxoutsetinfo

hash_type

Optional

hash_or_height

Optional

use_index

Optional

Inputs(3)

hash_type It tells about which UTXO set hash should be calculated, with the possible values: hash_serialized_3, none , muhash If not provided, default is set to be hash_serialized_3
hash_or_height The block hash or height of the target height. If not provided, default is set to be the current best block
use_index Use coinstatsindex if available. If not provided, default is set to be true

Result