Skip to main content

eth_feeHistory RPC Method

Loading...

Updated on
May 01, 2026

eth_feeHistory RPC Method

Parameters

blockCount
string
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.matic.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
null
10
],
11
"id": 1
12
}'
1
curl -X POST "https://docs-demo.matic.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
null
10
],
11
"id": 1
12
}'
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"oldestBlock": "0x51b2254",
6
"baseFeePerGas": [
7
"0x1751112b0e",
8
"0x1751a896e8",
9
"0x172fd56afc",
10
"0x16ff523cac",
11
"0x1701547d7e"
12
],
13
"gasUsedRatio": [
14
0.7044393416666667,
15
0.4142888,
16
0.3395498,
17
0.372916375
18
],
19
"baseFeePerBlobGas": [
20
"0x0",
21
"0x0",
22
"0x0",
23
"0x0",
24
"0x0"
25
],
26
"blobGasUsedRatio": [
27
0,
28
0,
29
0,
30
0
31
]
32
}
33
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"oldestBlock": "0x51b2254",
6
"baseFeePerGas": [
7
"0x1751112b0e",
8
"0x1751a896e8",
9
"0x172fd56afc",
10
"0x16ff523cac",
11
"0x1701547d7e"
12
],
13
"gasUsedRatio": [
14
0.7044393416666667,
15
0.4142888,
16
0.3395498,
17
0.372916375
18
],
19
"baseFeePerBlobGas": [
20
"0x0",
21
"0x0",
22
"0x0",
23
"0x0",
24
"0x0"
25
],
26
"blobGasUsedRatio": [
27
0,
28
0,
29
0,
30
0
31
]
32
}
33
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free