API Overview

Optimizes transaction fees without sacrificing execution speed.

Gas Network includes a set of APIs that accurately price transactions to get them onchain faster, for less. Simply integrate the API into your protocol, dapp, wallet, or bot to get started.

The Gas Network Difference

Gas Network is the industry's most precise tool for predicting gas prices. Unlike other solutions relying solely on onchain data, Gas Network leverages real-time mempool data when accessible and predictive modeling to forecast gas price distribution and the gas price required for inclusion in the next block or next ∼10 seconds, depending on the chain. Gas Network confidently prices your transactions for the transaction execution speed desired based on the current pressure in the mempool:

  • Based on quantile regression model : optimized for accurate and consistent prediction of the minimum marketable gas price for either the next block or the next ∼10 seconds, depending on the chain.
  • Accurately predicting minimum gas price: Prediction models must measure the validity of their results against the ground truth of confirmed blocks.
  • Avoiding over paying: Confidence in predicting sufficient gas price to be included in the next block must be balanced against over paying. Our goal is to be as close as possible, but not below, the minimum gas price of the next block.
  • User control: Since different users have different degrees of urgency for getting transactions into the next block, we provide a range of confidence levels for next-block inclusion.

APIs Available

Three APIs are available to integrate into your protocol, dapp, or bot:

  • The Price API provides precise, real-time calculations required for next-block or next ∼10 seconds confirmation, depending on the chain. Available for Ethereum, Polygon, Bitcoin, SEI, Optimism, Arbitrum, Base and many others.
  • The Base and Blob Fee API provides both type-2 base fee and type-3 blob base fee prediction 5 blocks into the future. Available for Ethereum.
  • The Distribution API provides the distribution of gas prices in the mempool at that moment in time. Available for Ethereum.

The use of these endpoints requires an API key. Request an API key here .