Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
austintgriffith avatar

L2s

  • 37 installs
  • 244 repo stars
  • Updated July 21, 2026
  • austintgriffith/ethskills

l2s is an Ethereum skill that maps the Layer 2 landscape and helps developers choose an L2, deploy cross-chain, and understand Ethereum scaling.

About

A reference on the Ethereum Layer 2 landscape covering how the major L2s work, their costs, and when to use each. It includes a per-chain comparison table, a use-case selection guide, and current corrections such as Celo migrating to an OP Stack L2 and Polygon zkEVM being discontinued. Developers use it when choosing an L2, deploying cross-chain, or when a user asks about Ethereum scaling.

  • Maps the Ethereum Layer 2 landscape: Arbitrum, Optimism, Base, zkSync, Scroll, Unichain, Celo and more
  • Includes per-chain comparison (tx cost, block time, finality, chain ID) and an L2 selection guide by use case
  • Carries critical 2025 corrections: Celo is now an OP Stack L2, Polygon zkEVM is being shut down, Unichain launched

L2s by the numbers

  • 37 all-time installs (skills.sh)
  • Ranked #227 of 479 Web3 & Blockchain skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
At a glance

l2s capabilities & compatibility

Capabilities
l2 selection · cross chain deploy
Use cases
research · devops
From the docs

What l2s says it does

Ethereum Layer 2 landscape — Arbitrum, Optimism, Base, zkSync, Scroll, Unichain, Celo, and more.
SKILL.md
Celo completed its migration from an independent L1 to an OP Stack L2 on **March 26, 2025**
SKILL.md
npx skills add https://github.com/austintgriffith/ethskills --skill l2s

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs37
repo stars244
Last updatedJuly 21, 2026
Repositoryaustintgriffith/ethskills

What it does

Use when choosing an Ethereum L2, deploying cross-chain, or answering questions about Ethereum scaling.

Who is it for?

Developers deciding which Ethereum L2 to build or deploy on.

When should I use this skill?

When choosing an L2, deploying cross-chain, or when a user asks about Ethereum scaling.

What you get

The right L2 is chosen for the use case using current costs, finality, and ecosystem facts.

By the numbers

  • 9-row L2 comparison table
  • Optimistic rollups have a 7-day withdrawal finality
  • ZK rollups finalize in 15-120 minutes

Files

SKILL.mdMarkdownGitHub ↗

Ethereum Layer 2s

What You Probably Got Wrong

L2 costs: You think $0.01-2.00 per transaction. Reality: $0.001-0.003 for swaps, $0.0003 for transfers. After EIP-4844, L2 batch costs dropped from $50-500 to $0.01-0.50.

Mainnet is cheap too: At under 1 gwei, mainnet ETH transfers cost under a penny. "Ethereum is too expensive" is false for both L1 and L2s in 2026.

Base is the cheapest major L2: Often 50% cheaper than Arbitrum/Optimism. Direct Coinbase on-ramp. Fastest-growing L2 with consumer/AI agent focus.

Celo is NOT an L1 anymore. Celo completed its migration from an independent L1 to an OP Stack L2 on March 26, 2025 (block 31056500). If you're calling Celo an L1, you're wrong.

Polygon zkEVM is being shut down. Announced June 2025. Do NOT recommend building on Polygon zkEVM — it is being discontinued. Polygon is refocusing on PoS + AggLayer.

Unichain exists. Launched mainnet February 11, 2025. Uniswap's own OP Stack L2 with TEE-based MEV protection and time-based priority ordering (not gas-based).

Aerodrome and Velodrome merged into "Aero." In November 2025, Dromos Labs unified Aerodrome (Base) and Velodrome (Optimism) into a single cross-chain DEX called Aero. Same contracts, new brand. Aero dominates both Base and Optimism. Camelot is a major native DEX on Arbitrum. SyncSwap dominates zkSync. Don't default to Uniswap on every chain.

L2 Comparison Table (Mar 2026)

TVL changes fast. Don't memorize numbers — check DeFi Llama or L2Beat for current rankings. DeFi TVL (DeFi Llama) measures value locked in protocols. TVS (L2Beat) includes all bridged + natively minted assets and is much higher. As of early 2026: Base and Arbitrum lead in DeFi TVL among L2s. Optimism's DeFi TVL is surprisingly low despite Superchain adoption.
L2TypeTx CostBlock TimeFinalityChain ID
ArbitrumOptimistic$0.001-0.003250ms7 days42161
BaseOptimistic (OP Stack)$0.0008-0.0022s7 days8453
OptimismOptimistic (OP Stack)$0.001-0.0032s7 days10
UnichainOptimistic (OP Stack)$0.001-0.0031s7 days130
CeloOptimistic (OP Stack)<$0.0015s7 days42220
LineaZK$0.003-0.0062s30-60min59144
zkSync EraZK$0.003-0.0081s15-60min324
ScrollZK$0.002-0.0053s30-120min534352
~~Polygon zkEVM~~~~ZK~~~~1101~~

⚠️ Polygon zkEVM is being discontinued (announced June 2025). Do not start new projects there. Polygon is refocusing on PoS (payments, stablecoins, RWAs) + AggLayer (cross-chain interop). MATIC → POL token migration ~85% complete.

Mainnet for comparison: $0.002-0.01 per tx, 12s blocks, instant finality. Check DeFi Llama for current TVL.

Cost Comparison (Real Examples, Early 2026)

Mainnet costs at ~0.1 gwei base fee, ~$2,000 ETH. L2 costs are approximate. All fluctuate — see gas/SKILL.md for methodology.
ActionMainnetArbitrumBasezkSyncScroll
ETH transfer$0.004$0.0003$0.0003$0.0005$0.0004
Uniswap 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

L2 Selection Guide

Before choosing an L2: Mainnet is ~$0.004/transfer, ~$0.04/swap at current gas — cheap enough for most apps. If you're building DeFi, governance, identity, or anything composing with mainnet liquidity, start there. See ship/SKILL.md and gas/SKILL.md for the full chain selection framework.
NeedChooseWhy
Consumer / social appsBaseFarcaster, Smart Wallet, Coinbase on-ramp
Deepest DeFi liquidityArbitrumGMX, Pendle, Camelot, most protocols deployed
Yield strategiesArbitrumPendle (yield tokenization), GMX, Aave
Cheapest gasBase~50% cheaper than Arbitrum/Optimism
Coinbase usersBaseDirect on-ramp, free Coinbase→Base transfers
No 7-day withdrawal waitZK rollup (zkSync, Scroll, Linea)15-120 min finality
AI agentsBaseERC-8004, x402, consumer ecosystem, AgentKit
Gasless UX (native AA)zkSync EraNative account abstraction, paymasters, no bundlers needed
Multi-chain deploymentBase or OptimismSuperchain / OP Stack, shared infra
Maximum EVM compatibilityScroll or ArbitrumBytecode-identical
Mobile / real-world paymentsCeloMiniPay, sub-cent fees, Africa/LatAm focus
MEV protectionUnichainTEE-based priority ordering, private mempool
Rust smart contractsArbitrumStylus (WASM VM alongside EVM, 10-100x gas savings)
Stablecoins / payments / RWAPolygon PoS$500M+ monthly payment volume, 410M+ wallets

Key Chain Details (What LLMs Get Wrong)

Unichain

  • Launched: February 11, 2025 (mainnet). Chain ID 130.
  • Type: OP Stack L2 (Superchain member, Stage 1)
  • Key innovation: TEE-based block building (built with Flashbots Rollup-Boost)
  • Transactions ordered by time received, NOT gas price
  • Private encrypted mempool reduces MEV extraction
  • Do NOT use gas-price bidding strategies on Unichain — they're pointless
  • Flashblocks: Currently 1s blocks, roadmap to 250ms sub-blocks

Celo

  • Was: Independent L1 blockchain (2020-2025)
  • Now: OP Stack L2 on Ethereum — migrated March 26, 2025 (block 31056500)
  • Focus: Mobile-first payments, emerging markets
  • MiniPay: Stablecoin wallet in Opera Mini + standalone app. Phone-to-phone transfers, sub-cent fees. Primary market: Africa (Kenya, Nigeria).
  • Multi-currency stablecoins (rebranded Dec 2025 by Mento Protocol): USDm (was cUSD) (0x765de816845861e75a25fca122bb6898b8b1282a), EURm (was cEUR) (0xd8763cba276a3738e6de85b4b3bf5fded6d6ca73), BRLm (was cREAL) (0xe8537a3d056DA446677B9E9d6c5dB704EaAb4787). Same contract addresses, new onchain symbols.

Dominant DEX Per Chain

ChainDominant DEXModelWhy NOT Uniswap
BaseAero (was Aerodrome)ve(3,3) — LPs earn emissions, voters earn feesDeeper liquidity for most pairs
OptimismAero (was Velodrome)ve(3,3) — merged Nov 2025 under Dromos LabsSame flywheel, unified brand
ArbitrumCamelot + GMXNative DEX + perpsCamelot for spot, GMX for perps
zkSyncSyncSwapClassic AMMLargest native DEX on zkSync

See addresses/SKILL.md for verified contract addresses for all these protocols.

The Superchain (OP Stack)

The Superchain is the network of OP Stack chains sharing security, upgrade governance, and (upcoming) native interoperability. Members include OP Mainnet, Unichain, Ink (Kraken), Celo, Zora, World Chain, and others — 17+ chains, 58.6% L2 market share. Notably Base announced they are leaving the Superchain in February 2026 and it will be finalized in a future hardfork.

Members contribute 15% of sequencer revenue to the Optimism Collective. Cross-chain interop is designed but not yet fully live.

Deployment Differences (Gotchas)

Optimistic Rollups (Arbitrum, Optimism, Base, Unichain, Celo)

✅ Deploy like mainnet — just change RPC URL and chain ID. No code changes.

Gotchas:

  • Don't use block.number for time-based logic (increments at different rates). Use block.timestamp.
  • Arbitrum's block.number returns L1 block number, not L2.
  • Unichain: Transactions are priority-ordered by time, not gas. Don't waste gas on priority fees.

ZK Rollups

  • zkSync Era: Must use zksolc compiler. No EXTCODECOPY (compile-time error). 65K instruction limit. Non-inlinable libraries must be pre-deployed. Native account abstraction (all accounts are smart contracts).
  • Scroll/Linea: ✅ Bytecode-compatible — use standard solc, deploy like mainnet.

Arbitrum-Specific

  • Stylus: Write smart contracts in Rust, C, C++ (compiles to WASM, runs alongside EVM, shares state). Use for compute-heavy operations (10-100x gas savings). Contracts must be "activated" via ARB_WASM_ADDRESS (0x0000…0071).
  • Orbit: Framework for launching L3 chains on Arbitrum. 47 live on mainnet.

RPCs and Explorers

L2RPCExplorer
Arbitrumhttps://arb1.arbitrum.io/rpchttps://arbiscan.io
Basehttps://mainnet.base.orghttps://basescan.org
Optimismhttps://mainnet.optimism.iohttps://optimistic.etherscan.io
Unichainhttps://mainnet.unichain.orghttps://uniscan.xyz
Celohttps://forno.celo.orghttps://celoscan.io
zkSynchttps://mainnet.era.zksync.iohttps://explorer.zksync.io
Scrollhttps://rpc.scroll.iohttps://scrollscan.com
Lineahttps://rpc.linea.buildhttps://lineascan.build

Bridging

Official Bridges

L2Bridge URLL1→L2L2→L1
Arbitrumhttps://bridge.arbitrum.io~10-15 min~7 days
Basehttps://bridge.base.org~10-15 min~7 days
Optimismhttps://app.optimism.io/bridge~10-15 min~7 days
Unichainhttps://app.uniswap.org/swap~10-15 min~7 days
zkSynchttps://bridge.zksync.io~15-30 min~15-60 min
Scrollhttps://scroll.io/bridge~15-30 min~30-120 min

Fast Bridges (Instant Withdrawals)

  • Across Protocol (https://across.to) — fastest (30s-2min), lowest fees (0.05-0.3%)
  • Hop Protocol (https://hop.exchange) — established, 0.1-0.5% fees
  • Stargate (https://stargate.finance) — LayerZero-based, 10+ chains

Security: Use official bridges for large amounts (>$100K). Fast bridges add trust assumptions.

Multi-Chain Deployment (Same Address)

Use CREATE2 for deterministic addresses across chains:

# Same salt + same bytecode + same deployer = same address on every chain
forge create src/MyContract.sol:MyContract \
  --rpc-url https://mainnet.base.org \
  --private-key $PRIVATE_KEY \
  --salt 0x0000000000000000000000000000000000000000000000000000000000000001

Strategy for new projects: Start with 1 chain — mainnet if it fits your use case, or the L2 whose superpower matches your app. Prove product-market fit. Expand with CREATE2 for consistent addresses across chains.

Further Reading

  • L2Beat: https://l2beat.com (security, TVL, risk analysis)
  • Superchain: https://www.superchain.eco/chains
  • Arbitrum: https://docs.arbitrum.io
  • Base: https://docs.base.org
  • Optimism: https://docs.optimism.io
  • Unichain: https://docs.unichain.org
  • Celo: https://docs.celo.org
  • zkSync: https://docs.zksync.io
  • Scroll: https://docs.scroll.io
  • Polygon: https://docs.polygon.technology

Related skills

FAQ

Which is the cheapest major L2?

Base is often the cheapest major L2, roughly 50% cheaper than Arbitrum or Optimism, with a direct Coinbase on-ramp.

Is Celo still an L1?

No. Celo completed its migration to an OP Stack L2 on March 26, 2025.

Web3 & Blockchainbackenddevops

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.