getblock

Input(s) 2

Retrieves information about a specific block identified by its hash.

How is this used?

Imagine you're a detective looking into a specific event that happened on a particular day, and you need to gather all the details about that day's occurrences, from the weather to the people involved. In the Bitcoin blockchain, the 'getblock' command works similarly by allowing you to investigate a specific block by its hash.

Request

method

getblock

blockhash

Required

verbosity

Optional

Inputs(2)

one required input remaining...

blockhash (required) - The hash of the block
verbosity default = 1, 0 for hex-encoded data, 1 for a JSON object, and 2 for JSON object with transaction data

Result