Skip to main content

eth_feeHistory RPC Method

Loading...

Updated on
Mar 27, 2026

eth_feeHistory RPC Method

Parameters

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

Returns

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