Skip to main content

eth_getHeaderByNumber RPC Method

Returns a block header without its transactions.

Updated on
Oct 15, 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

baseFeePerGas
string

A string of the base fee encoded in hexadecimal format, not included for blocks before EIP-1559

difficulty
string

The integer of the difficulty for the block encoded as a hexadecimal

extraData
string

The extra data field of the block

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

hash
string

The block hash of the requested block, null if pending

l1BlockNumber
string

Parent chain block number encoded as hexadecimal

logsBloom
string

The bloom filter for the logs of the block, null if pending

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 a hexadecimal

nonce
string

The hash of the generated proof-of-work, null if pending

number
string

The block number of the requested block encoded as a hexadecimal, null if pending

parentHash
string

The hash of the parent block

receiptsRoot
string

The root of the receipts trie of the block

sendCount
string

The send count

sendRoot
string

The send root hash

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
"baseFeePerGas": "0x5f5e100",
6
"difficulty": "0x1",
7
"extraData": "0x4c155b4b13b736c24f802a6bc0e17a9d46674e88accdaba68ea8e12e72dfb4c6",
8
"gasLimit": "0x4000000000000",
9
"gasUsed": "0x5208",
10
"hash": "0x851941f723ece88fe6cd148a2ad01d97e50154372ee2e5041b94d5e79de68dfc",
11
"l1BlockNumber": "0x3fe30a6",
12
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
13
"miner": "0xa4b000000000000000000073657175656e636572",
14
"mixHash": "0x000000000007faf10000000003fe30a6000000000000003d0000000000000000",
15
"nonce": "0x00000000000ba732",
16
"number": "0x931bb3",
17
"parentHash": "0x825006c346582614cbe4292606bf7e613c9608e60ec63d5e91d19597c9d7ec44",
18
"receiptsRoot": "0x3b5e9d084dc4a770cd470167568601342aebe33d876f98f0a981f27700234cec",
19
"sendCount": "0x7faf1",
20
"sendRoot": "0x4c155b4b13b736c24f802a6bc0e17a9d46674e88accdaba68ea8e12e72dfb4c6",
21
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
22
"stateRoot": "0x5f4b97edebd9eb19fdb294b993eb92feb42716ef7b7eb25d9b5c994a727a8f7e",
23
"timestamp": "0x6ad115ce",
24
"transactionsRoot": "0x0559e22d08fb1926bff90b59b3cf65c68dd8ad67924233d0fedcdd0f20ad8226"
25
}
26
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"baseFeePerGas": "0x5f5e100",
6
"difficulty": "0x1",
7
"extraData": "0x4c155b4b13b736c24f802a6bc0e17a9d46674e88accdaba68ea8e12e72dfb4c6",
8
"gasLimit": "0x4000000000000",
9
"gasUsed": "0x5208",
10
"hash": "0x851941f723ece88fe6cd148a2ad01d97e50154372ee2e5041b94d5e79de68dfc",
11
"l1BlockNumber": "0x3fe30a6",
12
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
13
"miner": "0xa4b000000000000000000073657175656e636572",
14
"mixHash": "0x000000000007faf10000000003fe30a6000000000000003d0000000000000000",
15
"nonce": "0x00000000000ba732",
16
"number": "0x931bb3",
17
"parentHash": "0x825006c346582614cbe4292606bf7e613c9608e60ec63d5e91d19597c9d7ec44",
18
"receiptsRoot": "0x3b5e9d084dc4a770cd470167568601342aebe33d876f98f0a981f27700234cec",
19
"sendCount": "0x7faf1",
20
"sendRoot": "0x4c155b4b13b736c24f802a6bc0e17a9d46674e88accdaba68ea8e12e72dfb4c6",
21
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
22
"stateRoot": "0x5f4b97edebd9eb19fdb294b993eb92feb42716ef7b7eb25d9b5c994a727a8f7e",
23
"timestamp": "0x6ad115ce",
24
"transactionsRoot": "0x0559e22d08fb1926bff90b59b3cf65c68dd8ad67924233d0fedcdd0f20ad8226"
25
}
26
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free