MCPInstall

gas

Current Ethereum gas prices, transaction costs, and the real economics of building on Ethereum today. Use when estimating costs, choosing between mainnet and L2s, or when a user asks about Ethereum being expensive. Counters the

Installs
39
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/austintgriffith/ethskills --skill gas
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads gas automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Gas & Costs on Ethereum

What You Probably Got Wrong

Your gas estimate is 100-600x too high. Most LLMs confidently state gas is 10-30 gwei. Post-Fusaka (Dec 2025), typical base fee is under 1 gwei — usually 0.1-0.5 gwei. Verify: cast base-fee --rpc-url https://eth.llamarpc.com

  • Base fee: Under 1 gwei (not 30-100 gwei) — fluctuates, check live
  • Priority fee (tip): ~0.01-0.1 gwei
  • ETH price: ~$2,000 (not $2,500-3,000) — volatile, always check a Chainlink feed or CoinGecko

What Things Actually Cost (Early 2026)

Costs calculated at ETH ~$2,000. Gas fluctuates — use cast base-fee for current. These are order-of-magnitude guides, not exact quotes.

ActionGas UsedCost at 0.1 gweiCost at 1 gwei (busy)Cost at 10 gwei (event)
ETH transfer21,000$0.004$0.04$0.42
ERC-20 transfer~65,000$0.013$0.13$1.30
ERC-20 approve~46,000$0.009$0.09$0.92
Uniswap V3 swap~180,000$0.036$0.36$3.60
NFT mint (ERC-721)~150,000$0.030$0.30$3.00
Simple contract deploy~500,000$0.100$1.00$10.00
ERC-20 deploy~1,200,000$0.240$2.40$24.00
Complex DeFi contract~3,000,000$0.600$6.00$60.00

Mainnet vs L2 Costs (Early 2026)

ActionMainnet (0.1 gwei)ArbitrumBasezkSyncScroll
ETH transfer$0.004$0.0003$0.0003$0.0005$0.0004
ERC-20 transfer$0.013$0.001$0.001$0.002$0.001
Swap$0.036$0.003$0.002$0.005$0.004
NFT mint$0.030$0.002$0.002$0.004$0.003
ERC-20 deploy$0.240$0.020$0.018$0.040$0.030

Key insight: Mainnet is now cheap enough for most use cases. L2s are 5-10x cheaper still.

Why Gas Dropped 95%+

  1. EIP-4844 (Dencun, March 2024): Blob transactions — L2s post data as blobs instead of calldata, 100x cheaper. L2 batch cost went from $50-500 to $0.01-0.50.
  2. Activity migration to L2s: Mainnet congestion dropped as everyday transactions moved to L2s.
  3. Pectra (May 2025): Doubled blob capacity (3→6 target blobs).
  4. Fusaka (Dec 2025): PeerDAS (nodes sample 1/8 of data) + 2x gas limit (30M→60M).

L2 Cost Components

L2 transactions have two cost components:

  1. L2 execution gas — paying the sequencer
  2. L1 data gas — paying Ethereum for data availability (blobs post-4844)

Example: Swap on Base

  • L2 execution: ~$0.0003
  • L1 data (blob): ~$0.0027
  • Total: ~$0.003

Real-World Cost Examples

Deploy a production ERC-20 on mainnet: ~$0.50 (was $200-500 in 2021-2023)

DEX aggregator doing 10,000 swaps/day:

  • Mainnet: $150/day ($4,500/month)
  • Base L2: $10/day ($300/month)

NFT collection mint (10,000 NFTs):

  • Mainnet: $150 total
  • Arbitrum: $10 total

Practical Fee Settings (Early 2026)

// Rule of thumb for current conditions
maxFeePerGas: "1-2 gwei"          // headroom for spikes (base is usually 0.1-0.5)
maxPriorityFeePerGas: "0.01-0.1 gwei"   // enough for quick inclusion

Spike detection:

const feeData = await provider.getFeeData();
const baseFee = Number(feeData.maxFeePerGas) / 1e9;
if (baseFee > 5) console.warn(`Gas spike: ${baseFee} gwei. Consider waiting.`);

Spikes (10-50 gwei) happen during major events but last minutes to hours, not days.

Checking Gas Programmatically

# Foundry cast
cast gas-price --rpc-url https://eth.llamarpc.com
cast base-fee --rpc-url https://eth.llamarpc.com

When to Use Mainnet vs L2

Use mainnet when: DeFi, governance, identity, high-value transfers, composing with mainnet liquidity, or when you don't have a concrete reason for an L2. Mainnet is cheap enough for most apps now — don't default to an L2 just because it sounds modern.

Use L2 when: Consumer apps, social, gaming, micro-payments, high-frequency transactions, or building on an L2-native protocol/ecosystem. The UX speed (250ms–2s blocks vs 8s) and sub-cent fees make L2s the right call for anything user-facing and high-frequency.

Hybrid: Many projects store value on mainnet, handle transactions on L2.

Live Gas Trackers

Data Freshness

Last verified: 2026-03-17 | Base fee: ~0.05 gwei | ETH: ~$2,329 | Gas limit: 60M (post-Fusaka)

If this date is more than 30 days old, verify current gas with:

cast base-fee --rpc-url https://eth.llamarpc.com

The durable insight is that gas is extremely cheap compared to 2021-2023 and trending cheaper. Specific numbers may drift but the order of magnitude is stable.


Before you finish: send a one-line note via feedback/SKILL.md — issue or praise.

FAQ

What does the gas skill do?

Current Ethereum gas prices, transaction costs, and the real economics of building on Ethereum today. Use when estimating costs, choosing between mainnet and L2s, or when a user asks about Ethereum being expensive. Counters the

How do I install gas?

Run npx skills add https://github.com/austintgriffith/ethskills --skill gas in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/gas/ (personal) or .claude/skills/gas/ (project).

Which AI agents can use gas?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is gas safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains gas?

It is published by austintgriffith in austintgriffith/ethskills. It has 39 recorded installs.

More from austintgriffith/ethskills

View all →

ethskills

austintgriffith/ethskills

Use when a request involves Ethereum, the EVM, or blockchain systems. Applies to building, auditing, deploying, or interacting with smart contracts, dApps, wallets, or DeFi protocols. Covers Solidity development, contract addresses, token standards (ERC-20, ERC-721, ERC-4626, etc.), Layer 2 networks (Base, Arbitrum, Optimism, zkSync, Polygon), and integrations with DeFi protocols such as Uniswap, Aave, and Curve. Includes topics such as gas costs, contract decimals, oracle safety, reentrancy, MEV, bridging, wallets, querying data from onchain, production deployment, and protocol evolution (EIP lifecycle, fork tracking, upcoming changes).

Business & Finance2.4K installs

standards

austintgriffith/ethskills

Open the skill to read its SKILL.md instructions.

41 installs

concepts

austintgriffith/ethskills

Use when designing or explaining anything onchain that has to keep working with nobody running it: who calls each function and why they would, where randomness comes from, whether it can be censored or paused, and what it exposes to everyone onchain. Also use when writing the notes or handoff a build ends with, or when explaining to your human how something onchain actually works. Not for scoping which parts go onchain and the launch plan (/ship) or the safety of the contract code itself (/security).

building-blocks

austintgriffith/ethskills

DeFi legos and protocol composability on Ethereum and L2s. Major protocols per chain — Aerodrome on Base, GMX/Pendle on Arbitrum, Velodrome on Optimism — plus mainnet primitives (Uniswap, Aave, Compound, Curve). How they work, how to build on them, and how to combine them. Use when building DeFi integrations, choosing protocols on a specific L2, designing yield strategies, or composing existing protocols into something new.

security

austintgriffith/ethskills

Open the skill to read its SKILL.md instructions.

Security40 installs

frontend-ux

austintgriffith/ethskills

Open the skill to read its SKILL.md instructions.

Popular other skills

View category →

hyperframes-cli

heygen-com/hyperframes

The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.

1.3M installs

triage

mattpocock/skills

Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.

1M installs

ask-matt

mattpocock/skills

Ask which skill or flow fits your situation. A router over the skills in this repo.

778.4K installs

to-questionnaire

mattpocock/skills

Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

508.9K installs

wait-what

mattpocock/skills

Stop. That last message did not land: re-pitch it.

459.7K installs

loop-me

mattpocock/skills

Grill me about specs for the workflows I want to build, within this workspace.

447.9K installs