getblock
Returns information about a block, based on the provided block hash.
Path parameters
Request
The hash of the block to retrieve.
Level of detail to return. - 0: hex-encoded string, - 1: basic block info, - 2: with transactions, - 3: with transactions + input prevouts.
Response
The block object or hex string, depending on verbosity.
The block hash.
Number of confirmations or -1 if block not on main chain.
Block height or index.
Block version.
Merkle root.
Block time in UNIX timestamp.
List of transaction IDs included in the block.
Block size in bytes.
Block size excluding witness data.
Block weight as defined in BIP 141.
Block version in hex.
Median block time.
Nonce used for mining.
nBits field of block header.
The target threshold for the block’s hash (derived from bits
).
Difficulty at the time of mining.
Expected number of hashes to produce the chain.
Number of transactions in the block.
Hash of the previous block.
Hash of the next block.