Gas Price Oracle library for Ethereum dApps
.vscode | ||
src | ||
tests | ||
.editiorconfig | ||
.gitignore | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json | ||
tslint.json |
Gas Price Oracle library for Ethereum dApps
Instalation
npm i gas-price-oracle
Usage
const { GasPriceOracle } = require('gas-price-oracle');
const oracle = new GasPriceOracle();
oracle.fetchGasPrices().then((gas) => {
console.log(gas)
});