Parameters
- hash_typestring
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_heightstring/integer
The block hash or height of the target height. If not provided, default is set to be the current best block
- use_indexboolean
Use coinstatsindex if available. If not provided, default is set to be true
Returns
- resultobject
The result is a JSON object with the following fields:
- heightinteger
The height of current block
- bestblockstring
The hash of the block at the tip of the chain
- transactionsinteger
The number of transactions with unspent outputs
- txoutsinteger
The number of unspent transaction outputs
- bogosizeinteger
A meaningless metric for UTXO set size
- hash_serializedstring
The serialized hash of the UTXO set
- disk_sizeinteger
The estimated size of the chainstate on disk
- total_amountnumber
It's the value in BCH about all unspent outputs together
- errorobject | null
JSON-RPC error object when the request failed, or null on success
- idinteger
The JSON-RPC request identifier
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.6225080811},12"error": null,13"id": 114}
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.6225080811},12"error": null,13"id": 114}