A Rust CLI tool that fetches real-time Ethereum gas prices from the Etherscan API.
- Fetches Fast, Standard, and Safe gas prices in Gwei
- Displays the latest block number
- Uses Etherscan's Gas Oracle API
- Rust (stable)
- An Etherscan API Key (free tier works)
cp .env.example .env
# Edit .env and add your Etherscan API keycargo runFetching current gas prices from Etherscan...
🚀 Fast Gas Price: 25 gwei
🚶 Propose Gas Price: 20 gwei
🐢 Safe Gas Price: 15 gwei
📦 Last Block: 19432156
reqwest— HTTP clientserde— JSON deserializationdotenv— Environment variable management