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 the 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
hash
string
The block hash of the requested block. null if pending
parentHash
string
The hash of the parent block
sha3Uncles
string
The SHA3 of the uncles data in the block
miner
string
The address of the beneficiary to whom the mining rewards were given
stateRoot
string
The root of the final state trie of the block
transactionsRoot
string
The root of the transaction trie of the block
receiptsRoot
string
The root of the receipts trie of the block
logsBloom
string
The bloom filter for the logs of the block. null if pending
difficulty
string
The integer of the difficulty for the block encoded as a hexadecimal
number
string
The block number of the requested block encoded as a hexadecimal. null if pending
gasUsed
string
The total used gas by all transactions in the block encoded as a hexadecimal
gasLimit
string
The maximum gas allowed in the block encoded as a hexadecimal
timestamp
string
The unix timestamp for when the block was collated
extraData
string
The “extra data” field of the block
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
baseFeePerGas
string
A string of the base fee encoded in hexadecimal format. Please note that the response field will not be included in a block requested before the EIP-1559 upgrade
withdrawalsRoot
string
The root of the withdrawals trie of the block
blobGasUsed
string
The total blob gas used by all transactions in the block encoded as a hexadecimal
excessBlobGas
string
The excess blob gas used in the block encoded as a hexadecimal
parentBeaconBlockRoot
string
The root of the parent beacon block of the block
totalDifficulty
string
The integer of the total difficulty of the chain until the block encoded as a hexadecimal
size
string
The size of the block in bytes as an integer value encoded as hexadecimal
uncles
array
An array of uncle hashes
transactions
array
An array of transactions
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free