ethgasfetch-use
v1.1.2
Published
A Node.js script to fetch Ethereum gas prices, block details, and account balances using Infura.
Readme
Ethereum Web3 Utility
This Node.js script interacts with the Ethereum blockchain to fetch the current gas price, the latest block number, its details, and the balance of a specified Ethereum account. It uses the Infura API to connect to the Ethereum network and prompts the user for the necessary inputs via the console.
Prerequisites
- Node.js (preferably the latest stable version)
- An Infura account and a Project ID created on the Infura platform
- An Ethereum address for which you want to check the balance
Setup
- Clone this repository or download the script to your local machine.
- Navigate to the script's directory in your terminal.
- Run
npm installto install all dependencies.
Usage
To start the script, run:
node ethGasFetch-use.js
Follow the on-screen prompts to enter your Infura Project ID and the Ethereum address you want to check.
