0.1.1 • Published 3 months ago

ethereum-gas-fetcher v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months 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);
});
0.1.1

3 months ago

0.1.0

3 months ago