Skip to main content

erigon_getHeaderByHash RPC Method

Fetches the header of a block by its hash.

Updated on
Jun 4, 2024

erigon_getHeaderByHash RPC Method

Parameters

blockHash
string
REQUIRED
The hash of the block

Returns

result
object
The result object which contains the following fields:
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
array
The bloom filter for the logs of the block. Null when it's a pending block
difficulty
string
The integer of the difficulty for this block encoded as hexadecimal
number
string
The block number of the requested block, encoded as hexadecimal. Null when it's a pending 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
timestamp
string
The UNIX timestamp for when the block was collated
extraData
string
The extra data field of this block
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
AuRaStep
integer
Indicates the step in the Aura consensus process
AuRaSeal
string
The seal data for the Aura consensus, if applicable
baseFeePerGas
string
The base fee per gas unit, relevant in EIP-1559 transactions, which can be null if not applicable
withdrawalsRoot
string
The root hash of the withdrawals trie
blobGasUsed
string
The amount of gas used for blobs
excessBlobGas
string
The excess gas used for blobs beyond the block's gas limit
parentBeaconBlockRoot
string
The root of the parent beacon block
Verkle
boolean
Indicates if Verkle trees are used, a more efficient form of Merkle trees
VerkleProof
string
The proof data for Verkle trees
VerkleKeyVals
string
The key-value pairs for Verkle trees
hash
string
The hash of the block header
Request
1
curl --location 'https://docs-demo.bsc.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"method": "erigon_getHeaderByHash",
5
"params": [
6
"0xabe2cf5d5add5141d1c28e097db7d2bd6a0aef7592f5e9dd3d8ba0bab8f34c3a"
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