Skip to main content

gettxoutsetinfo RPC Method

Returns information about the unspent transaction output set.

Updated on
Feb 04, 2026

Parameters

hash_type
string

Hash calculation: hash_serialized_3 (default), ecmh, muhash_testing, or none.

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; unavailable when coinstatsindex is used.

txouts
integer

The number of unspent transaction outputs

bogosize
integer

A meaningless metric for UTXO set size

hash_serialized_3
string

Serialized UTXO set hash, present only when hash_type is hash_serialized_3.

disk_size
integer

The estimated size of the chainstate on disk; unavailable when coinstatsindex is used.

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": 978893,
4
"bestblock": "0000000000000000003b1c6640f6a929cc6ac98a1b15df4b085adaf318d99cb3",
5
"txouts": 58788507,
6
"bogosize": 5490481405,
7
"hash_serialized_3": "e628c8c119326aeb821f7a0fdf8d142c65c46fe76ae081c15d3ed9f8462d45c6",
8
"total_amount": 20121266.20244203,
9
"transactions": 25677612,
10
"disk_size": 4407806461
11
},
12
"error": null,
13
"id": 1
14
}
1
{
2
"result": {
3
"height": 978893,
4
"bestblock": "0000000000000000003b1c6640f6a929cc6ac98a1b15df4b085adaf318d99cb3",
5
"txouts": 58788507,
6
"bogosize": 5490481405,
7
"hash_serialized_3": "e628c8c119326aeb821f7a0fdf8d142c65c46fe76ae081c15d3ed9f8462d45c6",
8
"total_amount": 20121266.20244203,
9
"transactions": 25677612,
10
"disk_size": 4407806461
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