This is the webserver and frontend code for Owlracle website. If you want to check the gas price oracle repo, check here.
When the dawn of smart networks arrived, dapp developers saw the need to know the gas price they should pay for submitting a transaction in those networks. While those developers could fetch the last transactions and look at the gas price paid, this method is not reliable enough as gas prices wildly fluctuate between each transaction. So the gas price oracles arrived to help solving this problem.
Inspired by works like ethgasstation, I have decided to create a gas price oracle working on several networks. Right now we provide estimations for Ethereum, Binance Smart Chain, Polygon, Fantom, Avalanche, Moonriver, and Cronos networks. Services like owlracle are a way to remove this burden from your servers (this can be somewhat resource-intensive), while providing API to help integrate your dapps to our predictions.
/gas
endpoint retrive not only the average gas price paid in the last N transactions in the chosen network, but also the average gas fee (in USD) paid and native token price. The main difference from other API oracle services is that Owlracle endpoint return fully customized information:
- How many transactions in the past will be analysed for making the calculations? Default 200 blocks in the past;
- What is the desired transaction acceptance rate you are looking for? e.g. 60% blocks accepted a transaction using a given gas price.
- How many acceptance rates you want to track? You can provice a list. In practice, this is the same as speeds from similar services. But in Owlracle, you can fully customize it.
- Number of lowest gas transactions to be considered when calculating minimum gas price accepted by the block.
/history
endpoint retrieve candlestick information about historic gas prices, native token price, and gas fee (in USD) paid over the course of time. You can customize the desired timeframe, and the time period of the search.
Want to know more? Check owlracle.info for a full documentation.
Support our project! We accept any token donation on BSC,
Polygon,
Fantom,
Ethereum,
Avalanche,
Moonriver, and
Cronos networks.