Docs · method · EVM
eth_feeHistory
| Units per call | 1 (standard) |
|---|---|
| Cache | never |
| Rule | Windows up to 1024 blocks (the protocol maximum); larger windows are refused with -32602. |
| Chains | Ethereum Mainnet · Base Mainnet · Arbitrum One · OP Mainnet · Polygon PoS |
| Specification | https://ethereum.github.io/execution-apis/api-documentation/ |
Example
curl -s https://flexyield.io/rpc/eth_mainnet \
-H "Authorization: Bearer $FLEXYIELD_KEY" -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_feeHistory","params":["0x10","latest",[25,50,75]]}'
When the rule applies — the exact answer
HTTP 400, JSON-RPC code -32602. The body says what to do next and carries a request id you can file as a ticket.
{
"error": {
"code": -32602,
"message": "eth_feeHistory windows above 1024 blocks aren't served — if you need deeper fee history, tell us what you're building and we'll enable or tailor it for your project, usually within a day: hello@flexyield.io",
"data": {
"contact": "hello@flexyield.io",
"docs": "https://flexyield.io/docs",
"request_id": "<uuid>",
"support": "/support/new?request_id=<uuid>"
}
}
}
Questions
What is the maximum block count?
1024 blocks — the protocol maximum.
All methods: methods and limits · docs · AI agents: the same call is the rpc_call MCP tool.