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,944 stars 440 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
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category