This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Historical Gas Price Percentile Lookup Tool

Analytics · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — nothing to install.
CategoryAnalytics
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

Historical Gas Price Percentile Lookup Tool fetches gas price data from historical blocks on the EVM chain and computes statistical percentiles to help users understand gas price distributions over time. The tool samples blocks within a user-specified range, extracts gas prices from each block, and calculates key percentiles (10th, 25th, 50th, 75th, 90th) along with min, max, mean, standard deviation, and interquartile range. Results are displayed in a clean visual dashboard with color-coded percentile cards. This provides developers and users with data-driven insights into typical gas costs, helping inform transaction timing, fee estimation strategies, and network usage planning.

HOW TO USE

Enter a starting block number and optionally an ending block number (defaults to the latest block). Specify the number of blocks to sample (default 1000, max 5000)—the tool will automatically distribute the sample evenly across the range to avoid hitting RPC rate limits. Click "Look up percentiles" to fetch the data. The tool displays a summary of sampled blocks, min/max/mean values, and a grid of percentile cards. Additional statistics include standard deviation and interquartile range. Use the "Export data (JSON)" button to copy the complete dataset, including all sampled prices and computed statistics, to your clipboard for further analysis or integration.

TECHNICAL MECHANISM: BLOCK SAMPLING WITH ADAPTIVE STEP SIZE AND PERCENTILE COMPUTATION

The tool first determines the total block range between fromBlock and toBlock, then computes an adaptive step size to sample approximately the user-specified number of blocks evenly across the range. It fetches blocks in chunks of 500 to avoid hitting provider rate limits (handling eth_getBlockByNumber requests in parallel batches). For each block, it extracts the gasPrice field (in wei) and converts it to Gwei. Once all prices are collected, the tool sorts the array and uses linear interpolation to calculate percentiles: for a given percentile p, it computes the index p/100 * (n-1) and interpolates between adjacent values. The tool also calculates the mean, standard deviation (population), and IQR (Q3 - Q1) to provide a comprehensive statistical summary. The chunked fetching approach ensures the tool works with most public RPCs that enforce per-request limits, and the adaptive step size keeps response times reasonable even for large block ranges.

WHAT IT CANNOT SEE

Cannot predict future gas prices—it only analyzes historical data. Cannot provide real-time gas price recommendations; real-time estimates require different methodology. Cannot account for EIP-1559 base fee trends beyond what is captured in historical block data—the tool fetches the gasPrice field which includes base fee + priority fee in post-EIP-1559 chains, but does not separate them. Cannot fetch data for blocks beyond the provider's archive retention period—some providers only retain full block data for a limited number of recent blocks. Cannot include mempool or pending transaction data in percentile calculations—it only analyzes finalized blocks. Cannot detect anomalies in gas price data that may skew percentiles. Cannot guarantee that the provider's data is complete or accurate for all historical blocks. Cannot compare gas prices across different chains automatically. Cannot account for priority fees or tip data separately from base fees in historical data. Cannot provide gas price estimates for specific transaction types or complexities.

PLEASE NOTE

EVM chains only. This tool reads on-chain data via the connected wallet's provider but does not write anything. Block sampling is subject to RPC rate limits and provider availability. Some RPCs may restrict access to older blocks.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.