Skip to main content

eth_feeHistory RPC Method

Loading...

Updated on
Mar 24, 2026

eth_feeHistory RPC Method

Parameters

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

Returns

oldestBlock
Loading...
baseFeePerGas
Loading...
gasUsedRatio
Loading...
reward
Loading...
Request
1
curl -X POST "https://docs-demo.bera-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.bera-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
"baseFeePerGas": [
6
"0x34",
7
"0x34",
8
"0x34",
9
"0x34",
10
"0x34"
11
],
12
"gasUsedRatio": [
13
0.16608211111111112,
14
0.051311,
15
0.05739786111111111,
16
0.05355844444444444
17
],
18
"baseFeePerBlobGas": [
19
"0x1",
20
"0x1",
21
"0x1",
22
"0x1",
23
"0x1"
24
],
25
"blobGasUsedRatio": [
26
0,
27
0,
28
0,
29
0
30
],
31
"oldestBlock": "0x119f9b3",
32
"reward": [
33
[
34
"0x6c",
35
"0x6c"
36
],
37
[
38
"0x1",
39
"0x186a0"
40
],
41
[
42
"0x1",
43
"0x98964c"
44
],
45
[
46
"0x1",
47
"0x186a0"
48
]
49
]
50
}
51
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"baseFeePerGas": [
6
"0x34",
7
"0x34",
8
"0x34",
9
"0x34",
10
"0x34"
11
],
12
"gasUsedRatio": [
13
0.16608211111111112,
14
0.051311,
15
0.05739786111111111,
16
0.05355844444444444
17
],
18
"baseFeePerBlobGas": [
19
"0x1",
20
"0x1",
21
"0x1",
22
"0x1",
23
"0x1"
24
],
25
"blobGasUsedRatio": [
26
0,
27
0,
28
0,
29
0
30
],
31
"oldestBlock": "0x119f9b3",
32
"reward": [
33
[
34
"0x6c",
35
"0x6c"
36
],
37
[
38
"0x1",
39
"0x186a0"
40
],
41
[
42
"0x1",
43
"0x98964c"
44
],
45
[
46
"0x1",
47
"0x186a0"
48
]
49
]
50
}
51
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free