eth_feeHistory
Description
Returns base fee per gas and effective priority fee history.
Counts as 1 request. See Request Counting.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
blockCount | hex | Yes | Number of blocks (hex) |
newestBlock | blockTag | Yes | Newest block |
rewardPercentiles | array | No | Reward percentiles |
Request
{
"jsonrpc": "2.0",
"method": "eth_feeHistory",
"params": [
"0x4",
"latest",
"[25, 75]"
],
"id": 1
}Code Examples
curl -X POST https://polygon-bor-rpc.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_feeHistory","params":["0x4","latest","[25, 75]"],"id":1}'