optimizing-gas-fees

Featured

Optimize blockchain gas costs by analyzing prices, patterns, and timing. Use when checking gas prices, estimating costs, or finding optimal windows. Trigger with phrases like "gas prices", "optimize gas", "transaction cost", "when to transact".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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: `ETHERSCAN_API_KEY` for higher rate limits - Optional: Custom RPC URLs via environment variables ## Instructions 1. Check current gas prices (optionally for a specific chain): ```bash cd ${CLAUDE_SKILL_DIR}/scripts && python3 gas_optimizer.py current cd ${CLAUDE_SKILL_DIR}/scripts && python3 gas_optimizer.py current --chain polygon ``` 2. 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`): ```bash 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 ``` 3. Find the optimal transaction window with lowest expected gas: ```bash cd ${CLAUDE_SKILL_DIR}/scripts && python3 gas_optimizer.py optimal ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

analyzing-mempool

Monitor blockchain mempools for pending transactions, gas analysis, and MEV opportunities. Use when analyzing pending transactions, optimizing gas prices, or researching MEV. Trigger with phrases like "check mempool", "scan pending txs", "find MEV", "gas price analysis", or "pending swaps".

2,266 Updated today
jeremylongshore
AI & Automation Featured

optimizing-staking-rewards

Compare and optimize staking rewards across validators, protocols, and blockchains with risk assessment. Use when analyzing staking opportunities, comparing validators, calculating staking rewards, or optimizing PoS yields. Trigger with phrases like "optimize staking", "compare staking", "best staking APY", "liquid staking", "validator comparison", "staking rewards", or "ETH staking options".

2,266 Updated today
jeremylongshore
DevOps & Infrastructure Solid

optimizing-cloud-costs

This skill enables Claude to analyze and optimize cloud costs. It identifies areas for potential savings, generates cost reports, and suggests configuration changes to reduce expenses. Use this skill when the user asks to "optimize cloud costs", "reduce cloud spending", "generate a cost report", or similar requests related to cloud resource expenses. It is especially useful when the user provides details about their cloud environment (e.g., AWS, Azure, GCP). The skill leverages best practices for cost optimization and provides production-ready configurations.

2,266 Updated today
jeremylongshore
AI & Automation Featured

routing-dex-trades

Route trades across multiple DEXs to find optimal prices with minimal slippage and gas costs. Use when comparing DEX prices, finding optimal swap routes, analyzing price impact, splitting large orders, or assessing MEV risk. Trigger with phrases like "find best swap", "compare DEX prices", "route trade", "optimal swap route", "split order", "DEX aggregator", "check slippage", or "MEV protection".

2,266 Updated today
jeremylongshore
AI & Automation Solid

cost-optimizer-cloud-data-platforms

Analyzes and optimizes costs for cloud data platforms

1,034 Updated today
a5c-ai