Gas API
What is the Gas API?
The Gas API is a powerful tool designed to provide real-time gas prices for supported networks. It serves as an oracle, offering up-to-date information on the computational costs associated with executing operations or transactions on Ethereum Virtual Machine (EVM) compatible chains.
Use the Gas API to optimize your transactions for speed and cost-effectiveness. The APIs allow you to access recommended gas prices based on your transaction's priority requirements, ensuring that your transactions get included in a block.
Why use the Gas API?
Use the Gas API to gain real-time insights into the gas market and make informed decisions about how much to pay for transaction fees. By leveraging this information, you can save time and money while ensuring that your transactions are processed quickly and efficiently.
The Gas API helps users determine the optimal time to execute a transaction based on current gas prices. This is especially important after the implementation of EIP-1559, which introduced more specific gas price parameters, making the calculation of transaction costs more complex.
Which networks are supported?
Refer to the supported networks section for an up-to-date list of supported networks and chain IDs.