Skip to main content

eth_feeHistory RPC Method

Loading...

Updated on
Apr 06, 2026

eth_feeHistory RPC Method

Parameters

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

Returns

oldestBlock
Loading...
baseFeePerGas
Loading...
gasUsedRatio
Loading...
reward
Loading...
Request
1
curl -X POST "https://docs-demo.fantom.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.fantom.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": "0x731bc51",
6
"reward": [
7
[
8
"0xe65ca8",
9
"0x21789a8"
10
],
11
[
12
"0xe65ca8",
13
"0x21789a8"
14
],
15
[
16
"0xe65ca8",
17
"0x21789a8"
18
],
19
[
20
"0xe65ca8",
21
"0x21789a8"
22
]
23
],
24
"baseFeePerGas": [
25
"0x3b9aca00",
26
"0x3b9aca00",
27
"0x3b9aca00",
28
"0x3b9aca00"
29
],
30
"gasUsedRatio": [
31
0.99,
32
0.99,
33
0.99,
34
0.99
35
]
36
}
37
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"oldestBlock": "0x731bc51",
6
"reward": [
7
[
8
"0xe65ca8",
9
"0x21789a8"
10
],
11
[
12
"0xe65ca8",
13
"0x21789a8"
14
],
15
[
16
"0xe65ca8",
17
"0x21789a8"
18
],
19
[
20
"0xe65ca8",
21
"0x21789a8"
22
]
23
],
24
"baseFeePerGas": [
25
"0x3b9aca00",
26
"0x3b9aca00",
27
"0x3b9aca00",
28
"0x3b9aca00"
29
],
30
"gasUsedRatio": [
31
0.99,
32
0.99,
33
0.99,
34
0.99
35
]
36
}
37
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free