
Polygon's OWLRACLE The multichain Gas Price tracker API
Owlracle says you should pay no more than this for Gas Price on network:
Price history
If you are a software developer, and want to integrate your application with our gas price oracle, you can use our endpoints.
Gas price estimation
Retrieve gas prices for network. If you prefer another network, replace for the corresponding network symbol. Check our header for the supported network list.
Owlracle scans recent past blocks (blocks
param) to build an estimative of required gas price to be paid. It looks for the minimum gas price accepted on a transaction for every scanned block (based on the chosen percentile
). Then it shows you the minimum gas price you should pay to be accepted on a percentage of your choice (accept
param) of those blocks.
Gas price history
Retrieve the price history for gas, token price and fee for network. If you prefer another network, replace for the corresponding network symbol. Check our header for the supported network list.
The API will return an array of candlesticks built from aggregate data of the requested timeframe. The array is ordered from decreasing timestamps.
API keys
When you access our endpoints, it is reccomended that you use an API key. You can request our data up to times per hour for free. After reaching that limit, you can continue to make requests either waiting a few minutes or using your api credit. You can also make requests without an api key for testing purposes, up to
times per hour.
Profile window
You can use the button below or the header section of this page to create new API keys, get information, logs, update, or even recharge your key should you need to use more than the free limit per hour.
Please keep in mind that you should use your API key in your server's code, never in the front-end code, mainly because of these two reasons:
- Front-end code is publicly readable, even if obfuscated. Thus, writing your keys in the source-code will EXPOSE them.
- If used in the front-end, every user request will trigger a call to our endpoints. Depending on your app's traffic, that will make your API key consume the free calls per hour quickly, and beyond that your api credit.
You can make your calls to our endpoints in your server code, save the result in a file or database, then every time your users request the information you can send the cached result. Remember to schedule calls to our endpoints at regular intervals to make sure your cached data is always up-to-date.
API Credit
After reaching the free request limit ( requests in the last hour), each new request will subtract $
USD from your API account.
Any time you want to recharge your API credit, you can use the same Manage API keys button above or the header to open the Recharge key tab. You will be asked to connect your wallet using Metamask extension. This window will let you transfer to Owlracle's wallet any amount of while using the network. The amount transferred will be converted to USD and credited in your account. After the transfer confirmation, our server will update your API credit automatically. Keep in mind that the amount credited may vary depending of the token exchange rate.
API key information
Request information about your API key.
API key credit recharge history
Get information about every api recharge.
On a success, the result will be a JSON containing message
and results
fields. The results
field is an array containing information about each API recharge transaction, where each element is an Object with the following fields:
API key usage log
Get information about your API key usage.
You can pass the optional arguments fromtime
and totime
to set the time range of your search.
Frequently Asked Questions
Didn't find what you were looking for? Ask us on telegram.
Donations
If you liked this website, or if you find the public API endpoint useful in any way, please consider buying me a coffee. It helps to pay for the domain, keeps the server running 24/7, and rewards my time. Thank you!
Feedback
Don't want or can't donate. No problem! You can help us by providing your feedback. If there is something wrong, missing, or you wish to see here, reach us on our Twitter page or Telegram group.