Skip to content

Releases: peppersec/gas-price-oracle

Release 0.2.0

19 Oct 18:11
Compare
Choose a tag to compare
  • New fetchMedianGasPriceOffChain function that collects data from all oracles and calculates the median value
  • New oracle gasnow.org

Release 0.1.5

12 Aug 09:59
Compare
Choose a tag to compare

Updates on-chain oracle contract address

Release 0.1.3

04 Jun 02:57
4db4d8c
Compare
Choose a tag to compare

Added npm publish through CI

Version 0.1.2

03 Jun 23:14
1be2226
Compare
Choose a tag to compare

Breaking changes:

  1. fetchGasPricesOffChain and fetchGasPricesOnChain no longer accepts the throwIfFailsToFetch arg. Use gasPrices method for that.
  2. fetchGasPricesOnChain returns number.

Version 0.1.1

02 Jun 13:32
Compare
Choose a tag to compare

Gas Price Oracle library for Ethereum dApps

const { GasPriceOracle } = require('gas-price-oracle');
const oracle = new GasPriceOracle();

oracle.gasPrices().then((gas) => {
    console.log(gas)
});