ethgasfetch-use

1.1.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i ethgasfetch-use

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

2.39 kB

Total Files

3

Last publish

Collaborators

  • octo44