Skip to main content

eth_feeHistory RPC Method

Loading...

Updated on
Feb 09, 2026

eth_feeHistory RPC Method

Parameters

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

Returns

oldestBlock
Loading...
baseFeePerGas
Loading...
gasUsedRatio
Loading...
reward
Loading...
Request
1
curl -X POST "https://docs-demo.xdai.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
"result": {
4
"baseFeePerGas": [
5
"0x25",
6
"0x29",
7
"0x2e",
8
"0x2f",
9
"0x2a"
10
],
11
"baseFeePerBlobGas": [
12
"0x3b9aca00",
13
"0x3b9aca00",
14
"0x3b9aca00",
15
"0x3b9aca00",
16
"0x3b9aca00"
17
],
18
"gasUsedRatio": [
19
0.9752192941,
20
0.9885339412,
21
0.5228774118,
22
0
23
],
24
"blobGasUsedRatio": [
25
0,
26
0,
27
0.5,
28
0
29
],
30
"oldestBlock": "0x2a6bce7",
31
"reward": [
32
[
33
"0x45",
34
"0x45"
35
],
36
[
37
"0x45",
38
"0x45"
39
],
40
[
41
"0x45",
42
"0x63"
43
],
44
[
45
"0x0",
46
"0x0"
47
]
48
]
49
},
50
"id": 1
51
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free