Skip to main content

eth_getHeaderByNumber RPC Method

Returns a block header without its transactions.

Updated on
Dec 02, 2026

Parameters

blockNumber
string
REQUIRED

A hexadecimal block number or block tag such as latest, safe, or finalized

Returns

result
object

The block header, or null if the block is not 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

gasLimit
string

The maximum gas allowed in the block encoded as a hexadecimal

gasUsed
string

The total used gas by all transactions 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, not included for blocks before EIP-1559

withdrawalsRoot
string

The root hash of the block's withdrawals trie.

blobGasUsed
string

The total blob gas consumed by transactions in the block, encoded as a hexadecimal quantity.

excessBlobGas
string

The excess blob gas carried over from prior blocks, encoded as a hexadecimal quantity.

parentBeaconBlockRoot
string

The parent beacon block root associated with this execution block.

requestsHash
string

The hash of the execution requests included in this block.

dependencyHeight
string

The height of the dependency block referenced by this Zero block, encoded as a hexadecimal quantity.

dependencyRoot
string

The root hash of the dependency data referenced by this Zero block.

parentStateRoot
string

The state root of the parent block, before this block's transactions are applied.

size
string

The encoded size of the block in bytes, represented as a hexadecimal quantity.

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"hash": "0x418803580e85e9ac26c2fa477e06347a4c48fee7fa0f89162af9b3b5a0b794c0",
6
"parentHash": "0x77fc3657fcd4c79b30da388ad1129b63c0c80212503adc10781bab1ab4dc5392",
7
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
8
"miner": "0x0000000000000000000000000000000000000000",
9
"stateRoot": "0x07d01b4fa402458a2f1311f54adeb5c4c4089d6722f3e56aadf2a69320a81755",
10
"transactionsRoot": "0xf5e796de3a5c3fc106d508aa55c5a6b8b22dc57b3915b739cd84b1332148dc36",
11
"receiptsRoot": "0x0910037a6acd6329f3a3ac17681cc506ed01ad059579808cdd04c7999b78a345",
12
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
13
"difficulty": "0x0",
14
"number": "0x7209",
15
"gasLimit": "0x77359400",
16
"gasUsed": "0x128fa",
17
"timestamp": "0x6b0cf42b",
18
"extraData": "0x",
19
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
20
"nonce": "0x0000000000000000",
21
"baseFeePerGas": "0xdb58580",
22
"withdrawalsRoot": "0x61698e04867f7040ff0eb975461e3cb43ce69bdfd2c303056acb7b8533f760ff",
23
"blobGasUsed": "0x0",
24
"excessBlobGas": "0x0",
25
"parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
26
"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
27
"dependencyHeight": "0x723ff",
28
"dependencyRoot": "0x35446407f9f9f2dfadde121e2e0e71ab3dde1b066ef561d056a761bef8713492",
29
"parentStateRoot": "0x35bf4fad9d4f30a6a35a4061f011be345925f0a9a4d3a456c84671b79fe8c837",
30
"size": "0x51a"
31
}
32
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"hash": "0x418803580e85e9ac26c2fa477e06347a4c48fee7fa0f89162af9b3b5a0b794c0",
6
"parentHash": "0x77fc3657fcd4c79b30da388ad1129b63c0c80212503adc10781bab1ab4dc5392",
7
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
8
"miner": "0x0000000000000000000000000000000000000000",
9
"stateRoot": "0x07d01b4fa402458a2f1311f54adeb5c4c4089d6722f3e56aadf2a69320a81755",
10
"transactionsRoot": "0xf5e796de3a5c3fc106d508aa55c5a6b8b22dc57b3915b739cd84b1332148dc36",
11
"receiptsRoot": "0x0910037a6acd6329f3a3ac17681cc506ed01ad059579808cdd04c7999b78a345",
12
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
13
"difficulty": "0x0",
14
"number": "0x7209",
15
"gasLimit": "0x77359400",
16
"gasUsed": "0x128fa",
17
"timestamp": "0x6b0cf42b",
18
"extraData": "0x",
19
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
20
"nonce": "0x0000000000000000",
21
"baseFeePerGas": "0xdb58580",
22
"withdrawalsRoot": "0x61698e04867f7040ff0eb975461e3cb43ce69bdfd2c303056acb7b8533f760ff",
23
"blobGasUsed": "0x0",
24
"excessBlobGas": "0x0",
25
"parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
26
"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
27
"dependencyHeight": "0x723ff",
28
"dependencyRoot": "0x35446407f9f9f2dfadde121e2e0e71ab3dde1b066ef561d056a761bef8713492",
29
"parentStateRoot": "0x35bf4fad9d4f30a6a35a4061f011be345925f0a9a4d3a456c84671b79fe8c837",
30
"size": "0x51a"
31
}
32
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free