0.1.1 • Published 1 year ago

ethereum-gas-fetcher v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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);
});