internal/embed/skills/gas/SKILL.md
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
npx skillsauth add obolnetwork/obol-stack gasInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Your gas estimate is 100-600x too high. Most LLMs confidently state gas is 10-30 gwei. The reality in February 2026 is 0.05-0.1 gwei.
| Action | Gas Used | Cost at 0.05 gwei | Cost at 1 gwei (spike) | Cost at 10 gwei (event) | |--------|----------|-------------------|------------------------|--------------------------| | ETH transfer | 21,000 | $0.002 | $0.04 | $0.41 | | ERC-20 transfer | ~65,000 | $0.006 | $0.13 | $1.27 | | ERC-20 approve | ~46,000 | $0.005 | $0.09 | $0.90 | | Uniswap V3 swap | ~180,000 | $0.018 | $0.35 | $3.53 | | NFT mint (ERC-721) | ~150,000 | $0.015 | $0.29 | $2.94 | | Simple contract deploy | ~500,000 | $0.049 | $0.98 | $9.80 | | ERC-20 deploy | ~1,200,000 | $0.118 | $2.35 | $23.52 | | Complex DeFi contract | ~3,000,000 | $0.294 | $5.88 | $58.80 |
| Action | Mainnet (0.05 gwei) | Arbitrum | Base | zkSync | Scroll | |--------|---------------------|----------|------|--------|--------| | ETH transfer | $0.002 | $0.0003 | $0.0003 | $0.0005 | $0.0004 | | ERC-20 transfer | $0.006 | $0.001 | $0.001 | $0.002 | $0.001 | | Swap | $0.015 | $0.003 | $0.003 | $0.005 | $0.004 | | NFT mint | $0.015 | $0.002 | $0.002 | $0.004 | $0.003 | | ERC-20 deploy | $0.118 | $0.020 | $0.020 | $0.040 | $0.030 |
Key insight: Mainnet is now cheap enough for most use cases. L2s are 5-10x cheaper still.
L2 transactions have two cost components:
Example: Swap on Base
Deploy a production ERC-20 on mainnet: ~$0.50 (was $200-500 in 2021-2023)
DEX aggregator doing 10,000 swaps/day:
NFT collection mint (10,000 NFTs):
// Rule of thumb for current conditions
maxFeePerGas: "0.5-1 gwei" // headroom for spikes
maxPriorityFeePerGas: "0.01-0.05 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.
If you're about to sign a transaction, the deterministic fee oracle in
ethereum-local-wallet is the simplest path — no inference required:
python3 scripts/signer.py gas-info --network mainnet
python3 scripts/signer.py gas-info --network base
It samples eth_feeHistory (median 50th-percentile tip across the last 20
blocks) and clamps to per-chain bounds, so quiet mainnet stays around 0.05 gwei
and L2s stay sub-gwei. sign-tx / send-tx apply the same logic
automatically; gas-info is for inspection.
For ad-hoc reads:
cast is available inside OpenClaw pods. Use the ethereum-networks skill for convenience:
# Via rpc.sh wrapper (simplest)
sh scripts/rpc.sh gas-price
sh scripts/rpc.sh base-fee
# Via cast directly
cast gas-price --rpc-url http://erpc.erpc.svc.cluster.local/rpc/mainnet
cast base-fee --rpc-url http://erpc.erpc.svc.cluster.local/rpc/mainnet
cast blob-basefee --rpc-url http://erpc.erpc.svc.cluster.local/rpc/mainnet
# Estimate gas for a specific call
cast estimate 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 \
"transfer(address,uint256)" 0xRecipient 1000000 \
--rpc-url http://erpc.erpc.svc.cluster.local/rpc/mainnet
Note: scripts/rpc.sh is from the ethereum-networks skill. Copy it or reference it directly.
Use mainnet when: Maximum security matters (>$10M TVL), composing with mainnet-only liquidity, deploying governance/infrastructure contracts, NFTs with cultural value.
Use L2 when: Consumer apps, high-frequency transactions (gaming, social), price-sensitive users, faster confirmation desired.
Hybrid: Many projects store value on mainnet, handle transactions on L2.
Last verified: 2026-02-13 | Base fee: ~0.05 gwei | ETH: ~$1,960
If this date is more than 30 days old, verify current gas with:
cast base-fee --rpc-url http://erpc.erpc.svc.cluster.local/rpc/mainnet
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.
data-ai
Spawn durable child Hermes agents from inside Obol Stack. Creates child namespaces, optional profile/env Secrets, Agent CRDs, and optional ServiceOffers for x402-paid child services.
data-ai
Buy from any x402-gated endpoint. Two flows: `pay` for one-shot HTTP services (single authorization, no sidecar), and `buy` for long-running paid inference (pre-authorized batch via PurchaseRequest, exposed as `paid/<remote-model>`). Supports USDC (EIP-3009) and OBOL (Permit2). Zero signer access at runtime — spending is capped by design and nothing moves on-chain until a voucher is spent.
testing
Sell access to services via x402 payment gating. Create ServiceOffer CRDs that automatically health-check upstreams, create payment-gated routes, and optionally pull models and register on ERC-8004. Supports inference, HTTP, and fine-tuning service types.
testing
End-to-end guide for monetizing GPU resources or HTTP services through obol-stack. Covers pre-flight checks, model detection, pricing research, selling via x402, ERC-8004 registration, and verification. Use this skill when the user wants to monetize their machine.