Gas Estimator Platform API
A Real-time ETH & BSC Gas Estimator for trading bots and DApps. Predict precise gas prices for the next block. The no-brainer necessity for seamless on-chain performance.
Overview
Gas Estimator Platform provides access to:
Get X% probability for next-block inclusion and choose your ideal balance between confirmation and gas savings. Unlock the power of precise gas predictions! With our Gas Price Predictor, you can choose 99% probability for quick confirmation or 70% probability to save gas over multiple blocks. Take control of your transactions now!
Authentication
A valid Mempool Node API Key is required in the Authorization
Header of every request.
Create an account and retrieve your API Key here
API
To interact with our Gas Estimation Platform via API, you must utilise our API Endpoints:
ethGasEstimator
GET
https://gasapi.mempoolnode.com/ethGasEstimator
Returns a range of confidence intervals for gas prices needed to qualify a transaction for inclusion in the next block. Order of confidence intervals is subject to change.
Headers
Example Ethereum Gas Prediction request
Example Ethereum Gas Prediction response payload
Key Description of Terms
baseFeePerGas
Base fee per gas in gwei
last_blocknumber
Last block number at the time of prediction
last_blocknumber_time
Last Block creation timestamp
pending_blocknumber
Current pending block number at the time of prediction
expected_gasprice
An array of all prediction levels for future and currently pending blocks
block
The block order state "pending + n", for example "pending" refers to the current pending block, "pending + 1" refers to the pending block after the current pending block, and so on
gasPrice
An array of all gas price predictions in order of probability levels
percent
The probability percentage level
priorityFeePerGas
Predicted priority fee per gas in gwei also known as the "tip"
maxFeePerGas
Max fee per gas in gwei
Last updated