Skip to main content

eth_feeHistory RPC Method

Returns the collection of historical gas information.

Updated on
Jan 21, 2026

Parameters

blockCount
string/integer
REQUIRED

The number of blocks in the requested range. Between 1 and 1024 blocks can be requested in a single query. It will return less than the requested range if not all blocks are available

newestBlock
string
REQUIRED

The highest number block of the requested range in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators

rewardPercentiles
integer
REQUIRED

A list of percentile values with a monotonic increase in value. The transactions will be ranked by effective tip per gas for each block in the requested range, and the corresponding effective tip for the percentile will be calculated while taking gas consumption into consideration

Returns

oldestBlock
string

The lowest number block of the returned range encoded in hexadecimal format

baseFeePerGas
array

An array of block base fees per gas. This includes the next block after the newest of the returned range, because this value can be derived from the newest block. Zeroes are returned for pre-EIP-1559 blocks

baseFeePerBlobGas
array

An array of block base fees per blob gas. This includes the next block after the newest of the returned range.

gasUsedRatio
array

An array of block gas used ratios. These are calculated as the ratio of gasUsed and gasLimit

blobGasUsedRatio
array

An array of blob gas used ratios for the returned blocks.

reward
array

(Optional) An array of effective priority fees per gas data points from a single block. All zeroes are returned if the block is empty

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"oldestBlock": "0x27221ab",
6
"reward": [
7
[
8
"0x2553",
9
"0xf4240"
10
],
11
[
12
"0x32",
13
"0xf4240"
14
],
15
[
16
"0x2553",
17
"0xf42a4"
18
],
19
[
20
"0x1",
21
"0x10c8e0"
22
]
23
],
24
"baseFeePerGas": [
25
"0x20abbe",
26
"0x20b16c",
27
"0x20d2de",
28
"0x20af94",
29
"0x209b5a"
30
],
31
"gasUsedRatio": [
32
0.17232705333333334,
33
0.19997097066666666,
34
0.131668232,
35
0.146519456
36
],
37
"baseFeePerBlobGas": [
38
"0x1",
39
"0x1",
40
"0x1",
41
"0x1",
42
"0x1"
43
],
44
"blobGasUsedRatio": [
45
0,
46
0,
47
0,
48
0
49
]
50
}
51
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"oldestBlock": "0x27221ab",
6
"reward": [
7
[
8
"0x2553",
9
"0xf4240"
10
],
11
[
12
"0x32",
13
"0xf4240"
14
],
15
[
16
"0x2553",
17
"0xf42a4"
18
],
19
[
20
"0x1",
21
"0x10c8e0"
22
]
23
],
24
"baseFeePerGas": [
25
"0x20abbe",
26
"0x20b16c",
27
"0x20d2de",
28
"0x20af94",
29
"0x209b5a"
30
],
31
"gasUsedRatio": [
32
0.17232705333333334,
33
0.19997097066666666,
34
0.131668232,
35
0.146519456
36
],
37
"baseFeePerBlobGas": [
38
"0x1",
39
"0x1",
40
"0x1",
41
"0x1",
42
"0x1"
43
],
44
"blobGasUsedRatio": [
45
0,
46
0,
47
0,
48
0
49
]
50
}
51
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free