eth_getBlockByNumber RPC Method
Parameters
blockNumber/tag
string
REQUIRED
The block number in hexadecimal format or the string latest, earliest, pending, safe or finalized
transaction detail flag
boolean
REQUIRED
The method returns the full transaction objects when this value 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
Base fee per gas in this block, encoded as hexadecimal
blobGasUsed
string
Total blob gas used in the block, encoded as hexadecimal
difficulty
string
The integer of the difficulty for this block encoded as a hexadecimal
excessBlobGas
string
Excess blob gas carried over from the previous block, encoded as 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. null if pending
logsBloom
string
The bloom filter for the logs of the block. null if pending
miner
string
The address of the beneficiary to whom the mining rewards were given
mixHash
string
A string of a 256-bit hash encoded as a hexadecimal
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
parentBeaconBlockRoot
string
Root of the corresponding beacon block in the consensus layer
parentHash
string
The hash of the parent block
receiptsRoot
string
The root of the receipts trie of the block
requestsHash
string
The hash of the requests made in this block, if applicable
sha3Uncles
string
The SHA3 of the uncles data in the block
size
string
The size of this block in bytes as an Integer value encoded as hexadecimal
stateRoot
string
The root of the final state trie of the block
timestamp
string
The unix timestamp for when the block was collated
transactions
array
An array of transaction objects or hashes included in the block
transactionsRoot
string
The root of the transaction trie of the block
uncles
array
An array of uncle hashes
withdrawals
array
Array of withdrawal operations included in the block
address
string
Address to which the withdrawal is made
amount
string
Amount withdrawn in Gwei, encoded as hexadecimal
index
string
Withdrawal index, encoded as hexadecimal
validatorIndex
string
Index of the validator making the withdrawal, encoded as hexadecimal
withdrawalsRoot
string
The root of the withdrawals in the block
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free