Skip to main content

eth_getBlockByHash RPC Method

Returns information of the block matching the given block hash.

Updated on
Mar 17, 2026

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 hexadecimal (EIP-1559 only)

difficulty
string

Block difficulty encoded as hexadecimal

extraData
string

Extra data field of the block encoded as hexadecimal

gasLimit
string

Maximum gas allowed in this block encoded as hexadecimal

gasUsed
string

Total gas used by all transactions in this block encoded as hexadecimal

hash
string

Block hash of the requested block or null if pending

logsBloom
string

Bloom filter for the logs of the block encoded as hexadecimal or null if pending

miner
string

Address of the beneficiary to whom block rewards were given

mixHash
string

Mix digest used to prove block validity

nonce
string

Proof-of-work nonce or null if pending

number
string

Block number encoded as hexadecimal or null if pending

parentHash
string

Hash of the parent block

receiptsRoot
string

Root of the receipts trie for the block

sha3Uncles
string

SHA3 hash of the uncles data in the block

size
string

Size of the block in bytes encoded as hexadecimal

stateRoot
string

Root hash of the final state trie for the block

timestamp
string

Unix timestamp when the block was produced encoded as hexadecimal

totalDifficulty
string

Total difficulty of the chain up to this block encoded as hexadecimal

transactions
array

Array of transaction objects or transaction hashes

transactionsRoot
string

Root of the transaction trie for the block

uncles
array

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