DEV Community

neuralmint
neuralmint

Posted on

Gas Checker CLI - Check ETH & SOL Fees from Terminal (Zero Dependencies)

Check gas fees on Ethereum and Solana without opening a browser.

One command, live data, zero dependencies. ETH gas in Gwei, SOL gas in microLamports, all from free public APIs.

What It Does

python3 gas_checker.py
Enter fullscreen mode Exit fullscreen mode

Output:

=== GAS CHECKER ===
ETH - Current: 8 Gwei | Slow: 6 | Avg: 8 | Fast: 12
SOL - Base fee: 5000 µLamports | Priority: 25000 | TPS: 2850
Enter fullscreen mode Exit fullscreen mode

Single chain:

python3 gas_checker.py --chain eth
python3 gas_checker.py --chain sol
Enter fullscreen mode Exit fullscreen mode

JSON mode for scripts:

python3 gas_checker.py --json
Enter fullscreen mode Exit fullscreen mode

Install

No pip needed:

curl -L https://raw.githubusercontent.com/neuralmint/gas-checker/main/gas_checker.py -o gas_checker.py
python3 gas_checker.py
Enter fullscreen mode Exit fullscreen mode

Or clone:

git clone https://github.com/neuralmint/gas-checker.git
cd gas-checker
python3 gas_checker.py
Enter fullscreen mode Exit fullscreen mode

Support

SOL: 4TGyiYBjaYhFFPNYyCoJjf16ctUsWVBiMR1FXQxEfhWi
ETH: 0xe07f177E0725c11EEc8BeA34C5b5193CaF2a1A6a


Follow for more Python tools.

Top comments (0)