gas-fee-tracker-by-kaan
v2.0.4
Published
This package tracks the gas fees that are used in a specified wallet.
Downloads
5
Readme
Gas Usage Tracker
This project allows users to input a wallet address and retrieves the total gas used by transactions associated with that address from the Ethereum blockchain, using the Etherscan API. It validates Ethereum addresses using the web3
library and queries transaction data with axios
.
Installation
Before running this project, make sure you have Node.js installed on your machine. Then, follow these steps to install the required dependencies:
- Clone this repository or download the source code.
- Navigate to the project directory in your terminal.
- Run
npm install
to install the dependencies.
You will also need to set up an .env
file in the root of your project directory with your Etherscan API key.
Usage
To use this program, run the following command in your terminal from the root of the project directory:
node index.js