/gas-fee-optimizer:optimizing-gas-feesfrom gas-fee-optimizer
Optimizes blockchain gas costs by fetching real-time prices, estimating transaction costs in ETH/USD, analyzing historical patterns, predicting future prices, and comparing gas across multiple chains.
Ships in gas-fee-optimizer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Gas fee optimization skill that:
ETHERSCAN_API_KEY for higher rate limitsCheck current gas prices (optionally for a specific chain):
cd ${CLAUDE_SKILL_DIR}/scripts && python3 gas_optimizer.py current
cd ${CLAUDE_SKILL_DIR}/scripts && python3 gas_optimizer.py current --chain polygon
Estimate transaction cost for known operations or custom gas limits (available operations: eth_transfer, erc20_transfer, erc20_approve, uniswap_v2_swap, uniswap_v3_swap, sushiswap_swap, curve_swap, nft_mint, nft_transfer, opensea_listing, aave_deposit, aave_withdraw, compound_supply, compound_borrow, bridge_deposit):
cd ${CLAUDE_SKILL_DIR}/scripts && python3 gas_optimizer.py estimate --operation uniswap_v2_swap --all-tiers
cd ${CLAUDE_SKILL_DIR}/scripts && python3 gas_optimizer.py estimate --gas-limit 150000 --tier fast # 150000 = configured value
Find the optimal transaction window with lowest expected gas:
cd ${CLAUDE_SKILL_DIR}/scripts && python3 gas_optimizer.py optimal
View gas patterns (hourly or daily):
cd ${CLAUDE_SKILL_DIR}/scripts && python3 gas_optimizer.py patterns
cd ${CLAUDE_SKILL_DIR}/scripts && python3 gas_optimizer.py patterns --daily
Predict future gas prices for a given hour:
cd ${CLAUDE_SKILL_DIR}/scripts && python3 gas_optimizer.py predict --time 14
Compare gas prices across multiple chains:
cd ${CLAUDE_SKILL_DIR}/scripts && python3 gas_optimizer.py compare
View base fee history for recent blocks:
cd ${CLAUDE_SKILL_DIR}/scripts && python3 gas_optimizer.py history --blocks 50
| 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 |
| 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) |
See references/errors.md for:
See references/examples.md for:
ARD.md (opens in a new tab)PRD.md (opens in a new tab)config/settings.yaml (opens in a new tab)references/errors.md (opens in a new tab)references/examples.md (opens in a new tab)references/implementation.md (opens in a new tab)scripts/cost_estimator.py (opens in a new tab)scripts/formatters.py (opens in a new tab)scripts/gas_fetcher.py (opens in a new tab)scripts/gas_optimizer.py (opens in a new tab)scripts/pattern_analyzer.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin gas-fee-optimizerOther plugins' skills for the same job