Parameters
- hash_typestring
Hash calculation: hash_serialized_3 (default), ecmh, muhash_testing, or none.
- 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; unavailable when coinstatsindex is used.
- txoutsinteger
The number of unspent transaction outputs
- bogosizeinteger
A meaningless metric for UTXO set size
- hash_serialized_3string
Serialized UTXO set hash, present only when hash_type is hash_serialized_3.
- disk_sizeinteger
The estimated size of the chainstate on disk; unavailable when coinstatsindex is used.
- 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": 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": 440780646111},12"error": null,13"id": 114}
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": 440780646111},12"error": null,13"id": 114}