Skip to main content

eth_feeHistory RPC Method

Loading...

Updated on
Jan 19, 2026

eth_feeHistory RPC Method

Parameters

blockCount
string/integer
REQUIRED
Loading...
newestBlock
string
REQUIRED
Loading...
rewardPercentiles
array
REQUIRED
Loading...

Returns

oldestBlock
string
Loading...
baseFeePerGas
array
Loading...
gasUsedRatio
array
Loading...
baseFeePerBlobGas
array
Loading...
blobGasUsedRatio
array
Loading...
reward
array
Loading...
Request
1
curl -X POST "https://docs-demo.b3-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "eth_feeHistory",
6
"params": [
7
4,
8
"latest",
9
[
10
25,
11
75
12
]
13
],
14
"id": 1
15
}'
1
curl -X POST "https://docs-demo.b3-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "eth_feeHistory",
6
"params": [
7
4,
8
"latest",
9
[
10
25,
11
75
12
]
13
],
14
"id": 1
15
}'
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"oldestBlock": "0x2c13d87",
6
"reward": [
7
[
8
"0x0",
9
"0x0"
10
],
11
[
12
"0x0",
13
"0x0"
14
],
15
[
16
"0x0",
17
"0x0"
18
],
19
[
20
"0x0",
21
"0x0"
22
]
23
],
24
"baseFeePerGas": [
25
"0xfc",
26
"0xfc",
27
"0xfc",
28
"0xfc",
29
"0xfc"
30
],
31
"gasUsedRatio": [
32
0.0014614,
33
0.001741,
34
0.0014614,
35
0.001741
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": "0x2c13d87",
6
"reward": [
7
[
8
"0x0",
9
"0x0"
10
],
11
[
12
"0x0",
13
"0x0"
14
],
15
[
16
"0x0",
17
"0x0"
18
],
19
[
20
"0x0",
21
"0x0"
22
]
23
],
24
"baseFeePerGas": [
25
"0xfc",
26
"0xfc",
27
"0xfc",
28
"0xfc",
29
"0xfc"
30
],
31
"gasUsedRatio": [
32
0.0014614,
33
0.001741,
34
0.0014614,
35
0.001741
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