Skip to main content

eth_feeHistory RPC Method

Returns the collection of historical gas information.

Updated on
Oct 15, 2026

Parameters

blockCount
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

A block number encoded as hexadecimal, or a block tag: earliest, latest, pending, safe, or finalized.

rewardPercentiles
array
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

gasUsedRatio
array

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

baseFeePerBlobGas
array

(Optional) An array of block blob base fees per gas encoded in hexadecimal format. This includes the next block after the newest of the returned range

blobGasUsedRatio
array

(Optional) An array of block blob gas used ratios. These are calculated as the ratio of blob gas used and the maximum blob gas per block

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": "0x92bf06",
6
"reward": [
7
[
8
"0x0",
9
"0x0"
10
],
11
[
12
"0x0",
13
"0x0"
14
]
15
],
16
"baseFeePerGas": [
17
"0x5f62f20",
18
"0x5f62f20",
19
"0x5f62f20"
20
],
21
"gasUsedRatio": [
22
1,
23
1
24
]
25
}
26
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"oldestBlock": "0x92bf06",
6
"reward": [
7
[
8
"0x0",
9
"0x0"
10
],
11
[
12
"0x0",
13
"0x0"
14
]
15
],
16
"baseFeePerGas": [
17
"0x5f62f20",
18
"0x5f62f20",
19
"0x5f62f20"
20
],
21
"gasUsedRatio": [
22
1,
23
1
24
]
25
}
26
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free