Skip to main content

gettxoutsetinfo RPC Method

Returns information about the unspent transaction output set.

Updated on
Feb 04, 2026

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
object

The result is a JSON object with the following fields:

height
integer

The height of current block

bestblock
string

The hash of the block at the tip of the chain

transactions
integer

The number of transactions with unspent outputs

txouts
integer

The number of unspent transaction outputs

bogosize
integer

A meaningless metric for UTXO set size

hash_serialized
string

The serialized hash of the UTXO set

disk_size
integer

The estimated size of the chainstate on disk

total_amount
number

It's the value in BCH about all unspent outputs together

error
object | null

JSON-RPC error object when the request failed, or null on success

id
integer

The JSON-RPC request identifier

Request
Response
1
{
2
"result": {
3
"height": 913619,
4
"bestblock": "000000000000000000673d5ea6054040c410841c3908f7cfb0cd45f5dae47466",
5
"transactions": 25202263,
6
"txouts": 58401028,
7
"bogosize": 5428509198,
8
"hash_serialized": "ef2557fa29f00f142e7fcf98bce3167b123616b00072316fb7a48616e8ef6a4c",
9
"disk_size": 5593206866,
10
"total_amount": 19917285.62250808
11
},
12
"error": null,
13
"id": 1
14
}
1
{
2
"result": {
3
"height": 913619,
4
"bestblock": "000000000000000000673d5ea6054040c410841c3908f7cfb0cd45f5dae47466",
5
"transactions": 25202263,
6
"txouts": 58401028,
7
"bogosize": 5428509198,
8
"hash_serialized": "ef2557fa29f00f142e7fcf98bce3167b123616b00072316fb7a48616e8ef6a4c",
9
"disk_size": 5593206866,
10
"total_amount": 19917285.62250808
11
},
12
"error": null,
13
"id": 1
14
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free