0.1.1 • Published 3 months ago
ethereum-gas-fetcher v0.1.1
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);
});