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)
Quantity
(any of)
string<hex>
3. reward_percentiles (required)
array[number<double>]
Result
(FeeHistory)gasUsedRatio
arrayoldestBlock
stringExample
Request
await window.ethereum.request({
"method": "eth_feeHistory",
"params": []
});
Result
{
"gasUsedRatio": [],
"oldestBlock": "0x0"
}