Skip to main content

eth_feeHistory

Transaction fee history Returns transaction base fee per gas and effective priority fee per gas for the requested/supported block range.

Params

(3)

1. block_count (required)

string<hex>

2. newest_block (required)

(any of)
string<hex>

3. reward_percentiles (required)

array[number<double>]

Result

(FeeHistory)
gasUsedRatio
array
oldestBlock
string

Example

Request

await window.ethereum.request({
"method": "eth_feeHistory",
"params": []
});

Result

{
"gasUsedRatio": [],
"oldestBlock": "0x0"
}

Params

block_count

newest_block

reward_percentiles


Request

await window.ethereum.request({
"method": "eth_feeHistory",
"params": [
null,
null,
null
]
});