ethereum-gas-fetcher
v0.1.1
Published
Fetches the current Ethereum gas price.
Downloads
5
Readme
Ethereum Gas Fetcher
This Node.js utility fetches the current Ethereum gas price using the GasNow API.
Installation
npm install ethereum-gas-fetcher
Usage
const EthereumGasFetcher = require('ethereum-gas-fetcher');
// Replace 'your_infura_api_key' with your actual Infura API key
const apiKey = 'your_infura_api_key';
const gasFetcher = new EthereumGasFetcher(apiKey);
gasFetcher.getGasPrice().then((gasPrice) => {
console.log('Current Gas Price:', gasPrice);
});