Skip to main content

gettxoutsetinfo RPC Method

Returns information about the unspent transaction output set.

Updated on
Oct 4, 2023

gettxoutsetinfo RPC Method

Parameters

hash_type
string
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
string/integer
The block hash or height of the target height. If not provided, default is set to be the current best block
use_index
boolean
Use coinstatsindex if available. If not provided, default is set to be true

Returns

result
The result is a JSON object with the following fields:
height
The height of current block
bestblock
The hash of the block at the tip of the chain
txouts
The number of unspent transaction outputs
bogosize
A meaningless metric for UTXO set siz
hash_serialized_3
The serialized hash (only present if 'hash_serialized_3' hash_type is chosen)
muhash
The muhash (only present if 'muhash' hash_type is chosen) value is used to compare with other nodes to verify the UTXO set's integrity
total_amount
It's the value in BTC about all unspent outputs together
transactions
The number of transactions with unspent outputs
disk_size
The estimated size of the chainstate on disk
total_unspendable_amount
The total amount of coins permanently excluded from the UTXO set (only available if coinstatsindex is used)
block_info
object
An object which gives information of amounts in the block at this block height (only available if coinstatsindex is used)
prevout_spent
The total amount of all prevouts spent in this block
coinbase
The coinbase subsidy amount of this block
new_outputs_ex_coinbase
The total amount of new outputs created by this block
unspendable
The total amount of unspendable outputs created in this block
unspendables
An object which has detailed view of the unspendable categories
genesis_block
The unspendable amount of the Genesis block subsidy
bip30
The transactions overridden by duplicates (no longer possible with BIP30)
scripts
The amounts sent to scripts that are unspendable
unclaimed_rewards
The fee rewards that miners did not claim in their coinbase
error
The error message, if any
Request
1
curl https://docs-demo.btc.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"method": "gettxoutsetinfo",
6
"params": [],
7
"id": 1,
8
"jsonrpc": "2.0"
9
}'
10
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free