erigon_getHeaderByNumber RPC Method
Parameters
blockNumber
string
REQUIRED
The block number
Returns
baseFeePerGas
string
(Optional) A string of the base fee encoded as hexadecimal
difficulty
string
The integer of the difficulty for this block encoded as hexadecimal
extraData
string
The extra data field of this block
gasLimit
string
The maximum gas allowed in this block encoded as hexadecimal
gasUsed
string
The total used gas by all transactions in this block encoded as hexadecimal
hash
string
The block hash of the requested block. Null when it's pending block
logsBloom
array
The bloom filter for the logs of the block. Null when it's a pending block
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 hexadecimal
nonce
string
The hash of the generated proof-of-work. Null when it's a pending block
number
string
The block number of the requested block, encoded as hexadecimal. Null when it's a pending block
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
stateRoot
string
The root of the final state trie of the block
timestamp
string
The UNIX timestamp for when the block was collated
transactionsRoot
string
The root of the transaction trie of the block
Request
1curl --location 'https://docs-demo.matic.quiknode.pro/' \2--header 'Content-Type: application/json' \3--data '{4"method": "erigon_getHeaderByNumber",5"params": [6"0x10c582e"7],8"id": 1,9"jsonrpc": "2.0"10}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free