eth_feeHistory

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

Request

This endpoint expects an object.
blockCountstringRequiredformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"
Number of blocks in the requested fee history.
newestBlockanyRequired
Newest block number or tag for the fee history range.
rewardPercentileslist of doublesOptional
Optional priority fee percentiles to sample for each block.

Response

Historical fee data for the requested block range.
oldestBlockstringformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

baseFeePerGaslist of strings
gasUsedRatiolist of doubles
rewardlist of lists of stringsOptional