Parameters
The hash of the block
Default true. When true returns JSON object, when false returns hex-encoded data
Returns
Response when verbose is true (the default). The JSON-RPC body includes result (block header object), error, and id.
The block header object
The hash of the block
The number of confirmations, or -1 if the block is not on the main chain
The block height or index
The block version
The block version formatted in hexadecimal
The merkle root
The block time expressed in UNIX epoch time
The median block time expressed in UNIX epoch time
The nonce
The value of the nBits field in the block header
The estimated amount of work done to find this block relative to the estimated amount of work done to find block 0
Expected number of hashes required to produce the current chain
The number of transactions in the block
The hash of the previous block (if available)
The hash of the next block (if available)
JSON-RPC error object when the request failed, or null on success
The JSON-RPC request identifier
Response when verbose is false. The JSON-RPC body includes result (hex-encoded serialized block header), error, and id.
A hex-encoded string of the serialized block header
JSON-RPC error object when the request failed, or null on success
The JSON-RPC request identifier
1{2"result": "010000007de867cc8adc5cc8fb6b898ca4462cf9fd667d7830a275277447e60800000000338f121232e169d3100edd82004dc2a1f0e1f030c6c488fa61eafa930b0528fe021f7449ffff001d36b4af9a",3"error": null,4"id": 15}
1{2"result": "010000007de867cc8adc5cc8fb6b898ca4462cf9fd667d7830a275277447e60800000000338f121232e169d3100edd82004dc2a1f0e1f030c6c488fa61eafa930b0528fe021f7449ffff001d36b4af9a",3"error": null,4"id": 15}