Skip to main content

erigon_getHeaderByHash RPC Method

Fetches the header of a block by its hash.

Updated on
May 21, 2026

Parameters

blockHash
string
REQUIRED

The hash of the block

Returns

baseFeePerGas
string

(Optional) A string of the base fee encoded as hexadecimal

blobGasUsed
string

The total amount of blob gas used in this block, encoded as hexadecimal, or null when unavailable

blockAccessListHash
string

The block access list hash, encoded as hexadecimal, or null when unavailable

difficulty
string

The integer of the difficulty for this block encoded as hexadecimal

excessBlobGas
string

The excess blob gas for this block, encoded as hexadecimal, or null when unavailable

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

parentBeaconBlockRoot
string

The parent beacon block root, encoded as hexadecimal, or null when unavailable

receiptsRoot
string

The root of the receipts trie of the block

requestsHash
string

The requests hash for this block, encoded as hexadecimal, or null when unavailable

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

withdrawalsRoot
string

The root of the withdrawals trie of the block, or null when unavailable

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"parentHash": "0xd1c4628a6710d8dec345e5bca6b8093abf3f830516e05e36f419f993334d10ef",
6
"sha3Uncles": "0x7d9ce61d799ddcb5dfe1644ec7224ae7018f24ecb682f077b4c477da192e8553",
7
"miner": "0x829bd824b016326a401d083b33d092293333a830",
8
"stateRoot": "0x6350d0454245fb410fc0fb93f6648c5b9047a6081441e36f0ff3ab259c9a47f0",
9
"transactionsRoot": "0xa17c2a87a6ff2fd790d517e48279e02f2e092a05309300c976363e47e0012672",
10
"receiptsRoot": "0x7eadd994da137c7720fe2bf2935220409ed23a06ec6470ffd2d478e41af0255b",
11
"logsBloom": "0x00af00124b82093253a6960ab5a003170000318c0a00c18d418505009c10c905810e05d4a4511044b6245a062122010233958626c80039250781851410a468418101040c0100f178088a4e89000140e00001880c1c601413ac47bc5882854701180b9404422202202521584000808843030a552488a80e60c804c8d8004d0480422585320e068028d2e190508130022600024a51c116151a07612040081000088ba5c891064920a846b36288a40280820212b20940280056b233060818988945f33460426105024024040923447ad1102000028b8f0e001e810021031840a2801831a0113b003a5485843004c10c4c10d6a04060a84d88500038ab10875a382c",
12
"difficulty": "0x1913ff69551dac",
13
"number": "0xc5043f",
14
"gasLimit": "0xe4e1b2",
15
"gasUsed": "0xe4d737",
16
"timestamp": "0x6100bc82",
17
"extraData": "0xe4b883e5bda9e7a59ee4bb99e9b1bc000921",
18
"mixHash": "0x7d416c4a24dc3b43898040ea788922d8563d44a5193e6c4a1d9c70990775c879",
19
"nonce": "0xe6e41732385c71d6",
20
"AuRaStep": 0,
21
"AuRaSeal": null,
22
"baseFeePerGas": null,
23
"withdrawalsRoot": null,
24
"blobGasUsed": null,
25
"excessBlobGas": null,
26
"parentBeaconBlockRoot": null,
27
"requestsHash": null,
28
"Verkle": false,
29
"VerkleProof": null,
30
"VerkleKeyVals": null,
31
"hash": "0xa917fcc721a5465a484e9be17cda0cc5493933dd3bc70c9adbee192cb419c9d7"
32
}
33
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"parentHash": "0xd1c4628a6710d8dec345e5bca6b8093abf3f830516e05e36f419f993334d10ef",
6
"sha3Uncles": "0x7d9ce61d799ddcb5dfe1644ec7224ae7018f24ecb682f077b4c477da192e8553",
7
"miner": "0x829bd824b016326a401d083b33d092293333a830",
8
"stateRoot": "0x6350d0454245fb410fc0fb93f6648c5b9047a6081441e36f0ff3ab259c9a47f0",
9
"transactionsRoot": "0xa17c2a87a6ff2fd790d517e48279e02f2e092a05309300c976363e47e0012672",
10
"receiptsRoot": "0x7eadd994da137c7720fe2bf2935220409ed23a06ec6470ffd2d478e41af0255b",
11
"logsBloom": "0x00af00124b82093253a6960ab5a003170000318c0a00c18d418505009c10c905810e05d4a4511044b6245a062122010233958626c80039250781851410a468418101040c0100f178088a4e89000140e00001880c1c601413ac47bc5882854701180b9404422202202521584000808843030a552488a80e60c804c8d8004d0480422585320e068028d2e190508130022600024a51c116151a07612040081000088ba5c891064920a846b36288a40280820212b20940280056b233060818988945f33460426105024024040923447ad1102000028b8f0e001e810021031840a2801831a0113b003a5485843004c10c4c10d6a04060a84d88500038ab10875a382c",
12
"difficulty": "0x1913ff69551dac",
13
"number": "0xc5043f",
14
"gasLimit": "0xe4e1b2",
15
"gasUsed": "0xe4d737",
16
"timestamp": "0x6100bc82",
17
"extraData": "0xe4b883e5bda9e7a59ee4bb99e9b1bc000921",
18
"mixHash": "0x7d416c4a24dc3b43898040ea788922d8563d44a5193e6c4a1d9c70990775c879",
19
"nonce": "0xe6e41732385c71d6",
20
"AuRaStep": 0,
21
"AuRaSeal": null,
22
"baseFeePerGas": null,
23
"withdrawalsRoot": null,
24
"blobGasUsed": null,
25
"excessBlobGas": null,
26
"parentBeaconBlockRoot": null,
27
"requestsHash": null,
28
"Verkle": false,
29
"VerkleProof": null,
30
"VerkleKeyVals": null,
31
"hash": "0xa917fcc721a5465a484e9be17cda0cc5493933dd3bc70c9adbee192cb419c9d7"
32
}
33
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free