Skip to main content

erigon_getHeaderByNumber RPC Method

Fetches the header of a block by its block number

Updated on
Jun 18, 2026
Deprecation Notice

This method will be deprecated on Amoy Testnet (July 1, 2026) and Mainnet (July 15, 2026) following Polygon Labs' sunset of Erigon. Use eth_getBlockByNumber as an alternative.

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
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"parentHash": "0xbd5e141f0ba27d3c403ee7d2627986a7e80a082822c6ec02377c5d2975bac3c9",
6
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
7
"miner": "0x0000000000000000000000000000000000000000",
8
"stateRoot": "0x87d2451e833c4b102ea98c5c0263fcf3e65b86eed239679588a8c010d7de1628",
9
"transactionsRoot": "0xc4cb09d6f195c9d130ee19978b645714e6cd6bd6af628fe7f20030c85b1f985e",
10
"receiptsRoot": "0x5c63cc6b8c9d1813bde955d5431381c35cda02b660ca7ada7fd490123ca47152",
11
"logsBloom": "0x7a256062ff8d1d8475dd36e899d465c43edb280dac3bd3d596ce43516f4e0de32fbb3b5a7423bc1194d1805f284936390f56d7f29f6fe46838e231097ce782cbf8c71f0f569fcf8cd1a8ec9bf6e10fed3f5e3e2b816c81f12d57005fa129df86d44d4b23a742fc7910eb00125bb23a8d754e9e0ee14f6fddf01bf156fd2cb8acb8331f519cac391f9ec7ac4cfbea34faec1baeb52a6173b8a9f9f7721334addb2fe990e3d0e65f586bed4c819176016150c42c80b7e0067164049cfa1a30a9fcf2150667640f045863d51274abc3d9a8e25422008670bffe5e5481c2aec4e18650940eeb9d4f3a436a4db8200b28252cab6bdcf8f328d65ab030089723f62d48",
12
"difficulty": "0x10",
13
"number": "0x10c582e",
14
"gasLimit": "0x134cb7d",
15
"gasUsed": "0x132e946",
16
"timestamp": "0x6109a9a5",
17
"extraData": "0xd783010a0183626f7288676f312e31352e37856c696e7578000000000000000040ba8812b62cfd92bb740f617090b0a691f58db340860ff7634757d559ae754b7b686fbff595ea7fd25c175b12485a4ee123386091f81b59de8009bc7d334f3c01",
18
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
19
"nonce": "0x0000000000000000",
20
"baseFeePerGas": null,
21
"withdrawalsRoot": null,
22
"blobGasUsed": null,
23
"excessBlobGas": null,
24
"parentBeaconBlockRoot": null,
25
"requestsHash": null,
26
"hash": "0x27fd35201118a45dc3d768ce655eff4d0761a422d82e4825bf54ed4cc8ce256e"
27
}
28
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"parentHash": "0xbd5e141f0ba27d3c403ee7d2627986a7e80a082822c6ec02377c5d2975bac3c9",
6
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
7
"miner": "0x0000000000000000000000000000000000000000",
8
"stateRoot": "0x87d2451e833c4b102ea98c5c0263fcf3e65b86eed239679588a8c010d7de1628",
9
"transactionsRoot": "0xc4cb09d6f195c9d130ee19978b645714e6cd6bd6af628fe7f20030c85b1f985e",
10
"receiptsRoot": "0x5c63cc6b8c9d1813bde955d5431381c35cda02b660ca7ada7fd490123ca47152",
11
"logsBloom": "0x7a256062ff8d1d8475dd36e899d465c43edb280dac3bd3d596ce43516f4e0de32fbb3b5a7423bc1194d1805f284936390f56d7f29f6fe46838e231097ce782cbf8c71f0f569fcf8cd1a8ec9bf6e10fed3f5e3e2b816c81f12d57005fa129df86d44d4b23a742fc7910eb00125bb23a8d754e9e0ee14f6fddf01bf156fd2cb8acb8331f519cac391f9ec7ac4cfbea34faec1baeb52a6173b8a9f9f7721334addb2fe990e3d0e65f586bed4c819176016150c42c80b7e0067164049cfa1a30a9fcf2150667640f045863d51274abc3d9a8e25422008670bffe5e5481c2aec4e18650940eeb9d4f3a436a4db8200b28252cab6bdcf8f328d65ab030089723f62d48",
12
"difficulty": "0x10",
13
"number": "0x10c582e",
14
"gasLimit": "0x134cb7d",
15
"gasUsed": "0x132e946",
16
"timestamp": "0x6109a9a5",
17
"extraData": "0xd783010a0183626f7288676f312e31352e37856c696e7578000000000000000040ba8812b62cfd92bb740f617090b0a691f58db340860ff7634757d559ae754b7b686fbff595ea7fd25c175b12485a4ee123386091f81b59de8009bc7d334f3c01",
18
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
19
"nonce": "0x0000000000000000",
20
"baseFeePerGas": null,
21
"withdrawalsRoot": null,
22
"blobGasUsed": null,
23
"excessBlobGas": null,
24
"parentBeaconBlockRoot": null,
25
"requestsHash": null,
26
"hash": "0x27fd35201118a45dc3d768ce655eff4d0761a422d82e4825bf54ed4cc8ce256e"
27
}
28
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free