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)

integer
>= 0

2. newest_block (required)

(any of)
integer
>= 0

3. reward_percentiles (required)

array[number<double>] or null
Default:
null

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
]
});