ethereum-gas-optimization

ethereum-gas-optimization is a skill for Claude Code, Codex from nirholas/three.ws. It costs 37 tokens per session (1,216 once invoked), scanned A, original, Apache-2.0.

A guide to lowering the fees paid for transactions on Ethereum. It explains gas pricing, transaction timing, batching, and when an Ethereum layer-2 network may be suitable.

In plain words
What is it for?
Use it to estimate Ethereum transaction costs, choose fee settings, find lower-fee times, batch operations, or evaluate an L2 for a use case.
Why use it?
It helps avoid unnecessary transaction costs and failed transactions caused by incorrect gas settings. It also helps compare the cost and trade-offs of Ethereum mainnet with layer-2 networks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to estimate Ethereum transaction costs, choose fee settings, find lower-fee times, batch operations, or evaluate an L2 for a use case.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nirholas/three.ws/ethereum-gas-optimization
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nirholas/three.ws --skill ethereum-gas-optimization
Clone the repo
git clone --depth 1 https://github.com/nirholas/three.ws

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ethereum-gas-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/three.ws/ethereum-gas-optimization/github.svg)](https://agentmods.dev/skills/nirholas/three.ws/ethereum-gas-optimization)
Your own site
<a href="https://agentmods.dev/skills/nirholas/three.ws/ethereum-gas-optimization"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/ethereum-gas-optimization/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ethereum-gas-optimization

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirholas/three.ws/ethereum-gas-optimization"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/ethereum-gas-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,216 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01216
Opus 5.5 $0.00015 $0.00486
Sonnet 5.5 $0.00007 $0.00243
Haiku 4.5 $0.00004 $0.00122

Measured 2mo ago against content hash 28edb75b9847, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ethereum-gas-optimization scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

data/skills/protocol/ethereum-gas-optimization/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ethereum Gas Optimization

When to use this skill

Use when the user asks about:

  • Reducing gas costs for Ethereum transactions
  • Best time to submit transactions for lower fees
  • Whether to use L2 vs mainnet for a specific operation
  • Understanding gas pricing mechanics (EIP-1559)
  • Optimizing DeFi operations for gas efficiency
  • Estimating transaction costs before execution

Gas Optimization Framework

1. Gas Price Mechanics (EIP-1559)

Understanding the fee model:

  • Base fee: Set by the network — adjusts up/down based on block fullness. This portion is burned.
  • Priority fee (tip): Paid to validators — determines transaction priority within a block.
  • Max fee: Your maximum willingness to pay (base + priority). Unused portion is refunded.
  • Gas limit: Maximum gas units the transaction can consume. Set too low = transaction fails. Set too high = overpaying.
  • Total cost: Gas Used * (Base Fee + Priority Fee)

Current gas prices can be checked on:

  • Etherscan gas tracker
  • blocknative.com
  • In-wallet gas estimation

2. Timing Strategies

Gas prices follow predictable patterns:

  • Lowest fees: Weekends (Saturday/Sunday), and weekday early morning UTC (2:00-8:00 UTC) when US/Asia overlap is minimal
  • Highest fees: Weekday US market hours (14:00-20:00 UTC), especially during NFT mints or market volatility
  • Avoid: Periods of extreme market volatility — gas spikes during crashes as everyone rushes to manage positions
  • Tools: Gas price alert services that notify when fees drop below your threshold

3. Transaction Optimization Techniques

Reduce gas consumption:

  • Batch transactions: Use multicall or batching contracts to combine multiple operations into one transaction
  • Approve exact amounts: Approving the exact amount needed uses slightly less gas than unlimited approval, but the gas savings are minimal — the real benefit is security
  • Token transfers: ERC-20 transfers cost ~65K gas. ETH transfers cost only 21K gas. Minimize unnecessary token movements.
  • Avoid partial fills: Set appropriate slippage to avoid reverted transactions that still cost gas
  • Cancel with replacement: If a transaction is stuck, send a 0 ETH transaction to yourself with the same nonce and higher gas price

Read the full file on GitHub · 102 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 102 lines · 37 tokens per session scan A 28edb75b9847

Subscribe to this mod's changes

ethereum-gas-optimization is a skill published in the GitHub repository nirholas/three.ws (287 stars, last pushed yesterday), licensed Apache-2.0. It adds 37 tokens to every session and 1,216 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

ethereum-gas-optimization compared with skills from other repositories

ethereum-gas-optimization next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ethereum-gas-optimizationnirholas/three.wsSkill287yesterdayApache-2.0A37Claude Code, Codex
pay-x402-servicenirholas/x402-payments-mcpSkill919d agoApache-2.0A51Claude Code
granite-pay-per-callnirholas/ibm-x402-mcpSkill919d agoApache-2.0A49Claude Code
pumpfun-token-researchnirholas/pumpfun-claims-botSkill2511d agononeA59Claude Code
jupiter-vrfdinternet-court/internet-court-skillSkill7.2k6d agononeA45Claude Code
vybe-token-market-intelvybenetwork/solana-mcp-vybeSkill3.2k4d agononeA60Claude Code, Codex
solana-security-reviewYD811/potbot-v2Skill223d agoMITA75Claude Code, Codex