Returns information about a block by its hash.
eth_getBlockByHash
JSON-RPC method returns information about a block by its hash. This method is essential for retrieving detailed block information when you have the block hash, commonly used for block exploration, transaction verification, and blockchain analysis.
blockHash
(string, required) — The 32-byte hash of the block to retrievefullTransactionObjects
(boolean, required) — If true
, returns full transaction objects; if false
, returns only transaction hashesnull
if the block is not found.
number
— Block number as a hexadecimal stringhash
— The 32-byte hash of the blockparentHash
— Hash of the parent blocktimestamp
— Block timestamp as a Unix timestamp in hexadecimalgasLimit
— Maximum gas allowed in this blockgasUsed
— Total gas used by all transactions in the blocktransactions
— Array of transaction hashes or full transaction objectsminer
— Address of the block miner/validatordifficulty
— Block difficulty (may be 0 for some consensus mechanisms)totalDifficulty
— Total difficulty of the chain until this blocksize
— Block size in bytes as a hexadecimal stringextraData
— Extra data field of the blocknonce
— Block nonce (if applicable)receiptsRoot
— Root hash of the receipts triestateRoot
— Root hash of the state trietransactionsRoot
— Root hash of the transactions trieeth_getSystemTxsByBlockHash
to retrieve system transactions specificallyeth_getBlockByHash
method is essential for applications that need to:
null
. On Hyperliquid, blocks may contain system transactions from HyperCore - use eth_getSystemTxsByBlockHash
to retrieve these separately.Successful response with block information
The response is of type object
.