eth_feeHistory
Gas data | Tempo
eth_feeHistory | Tempo
Tempo API method that returns historical gas information for a range of blocks. Reference for eth_feeHistory on Tempo via Chainstack.
POST
eth_feeHistory
Tempo API method that returns historical gas information for a range of blocks. This is useful for estimating appropriate gas fees based on recent network activity.Documentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
blockCount— number of blocks to return (hex or integer, max 1024)newestBlock— highest block number or tag (latest,pending)rewardPercentiles— (optional) array of percentiles to calculate priority fees
Response
result— the fee history object:baseFeePerGas— array of base fees for each block (plus next block)gasUsedRatio— array of gas used ratios for each blockoldestBlock— the oldest block number in the rangereward— (optional) array of priority fee percentiles for each block
eth_feeHistory code examples
Last modified on May 18, 2026