eth_getBlockByHashHTTP

Returns block details for a 32-byte block hash. fullTransactions controls whether txs are objects or hashes. Returns null when the serving upstream cannot find the block. Fields vary with the network and fork.

Chain EthereumTransport HTTPTry-it live

How to use

  1. Pick an API key (or paste one) in the Try it panel.
  2. Fill each parameter (order = params array index).
  3. Send request — live against the gateway; counts toward daily quota.

Parameters

JSON-RPC positional arguments — order matches the array sent in params. Index badges below match array positions.

hashDATA(32B)required

Block hash.

fullTxBooleanrequired

true = full transaction objects, false = hashes only.

params array (shape)

eth_getBlockByHash · paramsjson
1[
2 "$LATEST_BLOCK_HASH",
3 false
4]

Response fields

The result row describes the complete result; other rows describe its object fields or array elements. Indented rows describe nested members. For subscriptions,params.* rows describe later notifications rather than the initial reply.

FieldTypeDescription
resultOBJECT|nullBlock object, or null when no block is available to the serving upstream.
numberQUANTITYBlock number.
hashDATA(32B)Block hash.
parentHashDATA(32B)Hash of the parent block.
timestampQUANTITYUnix timestamp (seconds) when the block was proposed.
minerDATA(20B)Block producer or fee recipient, according to the selected network's consensus rules.
gasLimitQUANTITYMaximum gas allowed in this block.
gasUsedQUANTITYTotal gas used by all transactions.
baseFeePerGasQUANTITYExecution base fee in native-currency smallest units per gas, on networks and forks exposing EIP-1559.
sizeQUANTITYBlock size in bytes.
transactionsARRAYTransaction hashes (fullTx=false) or full transaction objects (fullTx=true).
withdrawalsARRAYValidator withdrawals where the network and fork support them; not every EVM network has Ethereum withdrawals.
└indexQUANTITYWithdrawal index.
└validatorIndexQUANTITYValidator index on the relevant consensus chain.
└addressDATA(20B)Withdrawal recipient.
└amountQUANTITYWithdrawal amount in Gwei (10^9 wei), not wei.
withdrawalsRootDATA(32B)Withdrawal-list commitment where the network and fork expose it.
blobGasUsedQUANTITYBlob gas used in this block where the network and fork support EIP-4844.
excessBlobGasQUANTITYExcess blob gas used to calculate blob base fees, where supported.
parentBeaconBlockRootDATA(32B)Parent beacon-chain block root where the network and fork expose EIP-4788.
stateRootDATA(32B)Root of the post-execution state trie.
transactionsRootDATA(32B)Root of the transactions trie.
receiptsRootDATA(32B)Root of the receipts trie.
logsBloomDATA(256B)Bloom filter of all logs in the block.
extraDataDATAArbitrary extra data supplied by the proposer.
mixHashDATA(32B)Consensus-dependent field. On post-Merge Ethereum it carries prevRandao; other networks may use different values.
nonceDATA(8B)Legacy or consensus-specific 8-byte header field; zero on post-Merge Ethereum, not a cross-chain invariant.
difficultyQUANTITYConsensus-dependent difficulty value; zero on post-Merge Ethereum, but other EVM networks can return nonzero compatibility values.
sha3UnclesDATA(32B)Ommer-list hash; the empty-list commitment on post-Merge Ethereum. Interpret other networks under their own consensus rules.
unclesDATA(32B)[]Ommer hashes. Empty for post-Merge Ethereum blocks; historical Ethereum PoW blocks can contain ommers.
requestsHashDATA(32B)Commitment to execution-layer requests on networks and forks exposing EIP-7685.