Agent skill · data analytics · jeremylongshore
optimizing-gas-fees
Optimize blockchain gas costs by analyzing prices, patterns, and timing.
Why this skill is useful
Adds scripts for real-time gas price analysis and transaction cost estimation that are not commonly found in public documentation.
What it needs
Requires python3, requests installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.
What this skill does
Optimizing Gas Fees Overview Gas fee optimization skill that: Fetches real-time gas prices from multiple sources Estimates transaction costs in ETH and USD Analyzes historical patterns to find optimal timing Predicts future gas prices Compares gas across multiple chains Prerequisites Python 3.8+ with requests library Network access to RPC endpoints Optional: ETHERSCANAPIKEY for higher rate limits Optional: Custom RPC URLs via environment variables Instructions 1. Check current gas prices (optionally for a specific chain): 2. Estimate transaction cost for known operations or custom gas limits (available operations: ethtransfer, erc20transfer, erc20approve, uniswapv2swap, uniswapv3swap, sushiswapswap, curveswap, nftmint, nfttransfer, opensealisting, aavedeposit, aavewithdraw, compoundsupply, compoundborrow, bridgedeposit): 3. Find the optimal transaction window with lowest expected gas: 4. View gas patterns (hourly or daily): 5. Predict future gas prices for a given hour: 6. Compare gas prices across multiple chains: 7. View base fee history for recent blocks: Output Current: Base fee, priority fee, and tier prices (slow/standard/fast/instant) Estimate: Gas cost in native token and USD for each tier Patterns: Historical hourly/daily patterns with low-gas markers Optimal: Recommended transaction window with expected savings Predict: Gas forecast for specific time with confidence Compare: Side-by-side gas prices across chains Supported Chains Chain Native Token Block Time ------- -------------- ------------ Ethereum ETH ~12 sec Polygon MATIC ~2 sec Arbitrum ETH ~0.25 sec Optimism ETH ~2 sec Base ETH ~2 sec Price Tiers Tier Percentile Confirmation Time ------ ------------ ------------------- Slow 10th 10+ blocks (~2+ min) Standard 50th 3-5 blocks (~1 min) Fast 75th 1-2 blocks (~30 sec) Instant 90th Next block (~12 sec) Error Handling See ${CLAUDESKILLDIR}/references/errors.md for: RPC connection issues API rate limiting Price feed errors Pattern analysis errors Examples …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/optimizing-gas-fees--030b38