Skip to content

๐Ÿš€ Nodejs module for retrieving live Ethereum gas prices โ›ฝ๏ธ. Optimize transactions and smart contracts with up-to-date gas price data. ๐Ÿ’ช

License

Notifications You must be signed in to change notification settings

numairawan/eth-gas-tracker-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Eth Gas Tracker Nodejs

Total Hits Downloads Version License


eth-gas-tracker-node is a powerful nodejs module that provides developers with an effortless way to retrieve live Ethereum gas prices, empowering them to optimize transactions and smart contracts on the Ethereum network.

Features

  • ๐Ÿš€ Retrieve live Ethereum gas prices with ease.
  • โ›ฝ๏ธ Obtain up-to-date and accurate gas price data.
  • ๐Ÿ’ช Fine-tune transaction optimization based on real-time gas prices.
  • ๐Ÿค Seamless integration into existing projects.
  • ๐Ÿ“š Comprehensive code examples for easy implementation.

๐Ÿ“ฆ Install

npm i eth-gas-tracker-node

Usage

To retrieve live Ethereum gas prices, follow these simple steps:

const EthereumGasPrice = require('eth-gas-tracker-node');

const gasPriceTracker = new EthereumGasPrice();

// Using .then
gasPriceTracker.getGasPrices().then((gasPrices) => {
  if (gasPrices) {
    console.log(gasPrices);
  } else {
    console.error('Failed to fetch gas prices.');
  }
});

// Using await
(async () => {
  const gasPrices = await gasPriceTracker.getGasPrices();
  if (gasPrices) {
    console.log(gasPrices);
  } else {
    console.error('Failed to fetch gas prices.');
  }
})();

Contributing

Contributions are welcome! Feel free to fork the repository and submit pull requests as well.

License

This project is licensed under the MIT license.

Connect with Me

Feel free to reach out to me for any project-related queries or collaborations. I'm always happy to connect and discuss ideas!

Telegram WhatsApp