getFeeHistory
Retrieve historical Ethereum gas fee data to analyze network congestion trends and optimize transaction timing.
Instructions
Get historical gas fee info
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"blockCount": "<blockCount>",
"chainId": "<chainId>"
},
"name": "getFeeHistory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blockCount | Yes | Number of blocks in the requested range. Between 1 and 1024 blocks can be requested in a single query. Less than requested may be returned if not all blocks are available. | |
| rewardPercentiles | No | A monotonically increasing list of percentile values to sample from each block's effective priority fees per gas in ascending order, weighted by gas used. | |
| chainId | Yes |