Skip to content

A Node.js script to fetch Ethereum gas prices, block details, and account balances using Infura.

Notifications You must be signed in to change notification settings

octo44/ethGasFetch-use

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Clone this repository or download the script to your local machine.
  2. Navigate to the script's directory in your terminal.
  3. Run npm install to 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.

About

A Node.js script to fetch Ethereum gas prices, block details, and account balances using Infura.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published