Releases: peppersec/gas-price-oracle
Releases · peppersec/gas-price-oracle
Release 0.2.0
- New
fetchMedianGasPriceOffChain
function that collects data from all oracles and calculates the median value - New oracle gasnow.org
Release 0.1.5
Updates on-chain oracle contract address
Release 0.1.3
Added npm publish through CI
Version 0.1.2
Breaking changes:
fetchGasPricesOffChain
andfetchGasPricesOnChain
no longer accepts thethrowIfFailsToFetch
arg. UsegasPrices
method for that.fetchGasPricesOnChain
returns number.
Version 0.1.1
Gas Price Oracle library for Ethereum dApps
const { GasPriceOracle } = require('gas-price-oracle');
const oracle = new GasPriceOracle();
oracle.gasPrices().then((gas) => {
console.log(gas)
});