get_block
Fetch a block by hash or height. Exactly one must be provided.
Params
{ "hash": "<64-hex>" }
or
{ "height": 5553 }
Result
{
"hash": "5c1b9e...e7",
"height": 5553,
"timestamp": 1726000000,
"tx_count": 3,
"transactions": [
"fb8a634f...8c",
"1a2b3c4d...ee",
"..."
],
"prev_block_id": "...",
"difficulty_target": "...",
"nonce": 12345678,
"state_root": "...",
"tx_root": "..."
}
transactions[0] is always the coinbase. Other entries are the txids in
canonical block order. To fetch each transaction's body, call
get_transaction with the txid.
Errors
-32602 No block at height H— height beyond tip or pruned-32602 Block not found— hash unknown-32602 Provide either 'hash' or 'height'— neither given