eth_getBlockByHash RPC Method
Parameters
hash
string
REQUIRED
The hash (32 bytes) of the block
transaction detail flag
boolean
REQUIRED
(default: false) It returns the full transaction objects when it is true otherwise it returns only the hashes of the transactions
Returns
object
object
A block object, or null when no block was found
baseFeePerGas
string
A string of the base fee encoded in hexadecimal format
blobGasUsed
string
The total blob gas used in this block encoded as a hexadecimal
difficulty
string
The difficulty for this block encoded as a hexadecimal
epoch
string
The consensus epoch of the block encoded as a hexadecimal
excessBlobGas
string
The excess blob gas in this block encoded as a hexadecimal
extraData
string
The extra data field of this block
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, or null if pending
logsBloom
string
The bloom filter for the logs of the block, or null if pending
miner
string
The address of the beneficiary to whom the mining rewards were given
mixHash
string
A 256-bit hash encoded as a hexadecimal
nonce
string
The hash of the generated proof-of-work, or null if pending
number
string
The block number encoded as a hexadecimal, or 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
timestampNano
string
The nanosecond-precision timestamp for the block
totalDifficulty
string
The total difficulty of the chain until this block encoded as a hexadecimal
transactions
array
An array of transaction hashes as strings
transactionsRoot
string
The root of the transaction trie of the block
uncles
array
An array of uncle hashes
withdrawalsRoot
string
The root of the withdrawals trie of the block
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free