Skip to content

SAMIR897/gas_tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⛽ Gas Tracker

A Rust CLI tool that fetches real-time Ethereum gas prices from the Etherscan API.

Features

  • Fetches Fast, Standard, and Safe gas prices in Gwei
  • Displays the latest block number
  • Uses Etherscan's Gas Oracle API

Prerequisites

Setup

cp .env.example .env
# Edit .env and add your Etherscan API key

Usage

cargo run

Sample Output

Fetching current gas prices from Etherscan...
🚀 Fast Gas Price: 25 gwei
🚶 Propose Gas Price: 20 gwei
🐢 Safe Gas Price: 15 gwei
📦 Last Block: 19432156

Tech Stack

  • reqwest — HTTP client
  • serde — JSON deserialization
  • dotenv — Environment variable management

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages