Real-time gas price monitor for Base mainnet, built as a single static page with no build step.
base-gas-tracker-lyart.vercel.app
Also available as a Farcaster Mini App (listed under developer tools as "Base Gas Tracker").
Note: this project does not deploy or interact with any smart contract. It reads block and fee data directly from public Base RPC endpoints.
- Live gas price, refreshed every 10 seconds, with a Cheap / Normal / High status badge
- 24-hour price history chart, backfilled on load via
eth_feeHistory - Transaction cost calculator with presets (ETH transfer, ERC-20 transfer, Uniswap swap, NFT mint) and USD conversion via the CoinGecko API
- Best time to transact: hourly averages over the last 24 hours highlight the cheapest hour
- Automatic RPC failover across three public Base endpoints (LlamaRPC, PublicNode, Base official)
- Vanilla HTML, CSS and JavaScript in a single file, no framework, no bundler
- ethers.js v6 (CDN) for RPC access
- Chart.js v4 (CDN) for the history chart
- Farcaster Mini App SDK for Mini App integration
- Hosted on Vercel
There are no dependencies to install and no environment variables to configure.
# Clone
git clone https://github.com/memosr/base-gas-tracker.git
cd base-gas-tracker
# Run: open directly...
open frontend/index.html
# ...or serve locally
python3 -m http.server 8000 --directory frontendfrontend/,docs/,public/each contain a copy of the app (index.html, image assets, and the Farcaster manifest at.well-known/farcaster.json).public/is the deployed copy and also holds the SVG sources.convert-to-png.shregenerates the PNG assets from the SVGs (requireslibrsvg).