Skip to main content

eth_getBlockByHash RPC Method

Returns information of the block matching the given block hash.

Updated on
Jun 30, 2025

Parameters

hash
string
REQUIRED

The hash (32 bytes) of the block

transaction detail flag
boolean
REQUIRED

It returns the full transaction objects when it is true otherwise it returns only the hashes of the transactions

Returns

result
object

A block object, or null when no block was found

baseFeePerGas
string

Base fee per gas for the block, encoded as a hexadecimal (EIP-1559 only)

difficulty
string

The difficulty for this block encoded as a hexadecimal

extraData
string

The extra data field of this block encoded as a hexadecimal

gasLimit
string

The maximum gas allowed in this block encoded as a hexadecimal

gasUsed
string

The total used gas by all transactions in this block encoded as a hexadecimal

hash
string

The block hash of the requested block. null if pending

logsBloom
string

The bloom filter for the logs of the block encoded as a hexadecimal. null if pending

miner
string

The address of the beneficiary to whom the mining rewards were given

mixHash
string

The hash of the mix digest used to prove the validity of the block

nonce
string

The hash of the generated proof-of-work. null if pending

number
string

The block number of the requested block encoded as a hexadecimal. null if pending

parentHash
string

The hash of the parent block

receiptsRoot
string

The root of the receipts trie of the block

sha3Uncles
string

The SHA3 of the uncles data in the block

size
string

The size of this block in bytes encoded as a hexadecimal

stateRoot
string

The root of the final state trie of the block

timestamp
string

The unix timestamp for when the block was collated encoded as a hexadecimal

totalDifficulty
string

The total difficulty of the chain until this block encoded as a hexadecimal

transactions
array

An array of transaction objects or hashes

transactionsRoot
string

The root of the transaction trie of the block

uncles
array

An array of uncle block hashes

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free