name: layer-2s description: L2 landscape guide for early 2026. Arbitrum, Base, Optimism, zkSync, Scroll, Linea, Starknet. Chain IDs, RPC endpoints, block explorers, cost comparison, decision matrix. metadata: author: Andre Ginja version: 1.0.0
Layer 2s
The current L2 landscape as of early 2026. Which chain, when, and why. This skill focuses on practical decisions, not theory.
What You Probably Got Wrong
The dominant DEX is NOT Uniswap on every L2. This is the most common mistake agents make. Uniswap has deployments everywhere, but it does not have the deepest liquidity on every L2.
| Chain | Dominant DEX | Runner-up |
|---|---|---|
| Ethereum L1 | Uniswap V3 | Curve |
| Arbitrum | Camelot | Uniswap V3 |
| Optimism | Velodrome | Uniswap V3 |
| Base | Aerodrome | Uniswap V3 |
| zkSync Era | SyncSwap | Maverick |
| Scroll | Ambient (CrocSwap) | Uniswap V3 |
| Linea | Nile | SyncSwap |
If you are building a swap integration, route through the dominant DEX for that chain, not Uniswap.
Polygon zkEVM is being wound down. Do not build new projects on it. Polygon is sunsetting the zkEVM chain and redirecting focus to Polygon PoS and the AggLayer. If your training data says "deploy to Polygon zkEVM," that advice is outdated.
Celo migrated to an OP Stack L2. As of March 2025, Celo is no longer an independent L1. It is an Optimism-based L2 with a 7-day withdrawal period and centralized sequencer.
L2s are not all the same. Optimistic rollups (Arbitrum, Optimism, Base) and zk-rollups (zkSync, Scroll, Linea) have fundamentally different trust assumptions, finality characteristics, and developer experiences. "Just deploy to an L2" is not sufficient guidance.
All L2 sequencers are centralized. Every major L2 runs a single sequencer operated by the team. This means the sequencer can censor transactions (temporarily) and extract MEV. All have escape hatches for force-inclusion on L1, but decentralized sequencers are not in production as of early 2026.
The Chains
Arbitrum One
The deepest DeFi ecosystem among L2s. If your dApp composes with lending, perpetuals, or complex financial products, Arbitrum is the default choice.
| Fact | Value |
|---|---|
| Type | Optimistic rollup (Nitro) |
| Chain ID | 42161 |
| Testnet Chain ID | 421614 (Arbitrum Sepolia) |
| Block time | ~0.25 seconds (variable, demand-based) |
| Native token | ETH |
| TVL | Largest among L2s |
| Withdrawal to L1 | 7 days |
| RPC endpoint | https://arb1.arbitrum.io/rpc |
| Block explorer | arbiscan.io |
Arbitrum Stylus: Write smart contracts in Rust, C, or C++ compiled to WASM. Runs alongside EVM contracts on the same chain with full composability. If your team knows Rust better than Solidity, or you need computation-heavy logic that is expensive in the EVM, Stylus is the reason to choose Arbitrum.
# Deploy a Stylus contract
cargo stylus deploy --private-key $KEY --endpoint https://arb1.arbitrum.io/rpc
# Check if Stylus is activated for a contract
cargo stylus check --endpoint https://arb1.arbitrum.io/rpc
Orbit L3s: Launch your own L3 that settles to Arbitrum instead of Ethereum. Used for gaming, enterprise, and application-specific chains. Xai, Treasure, and Degen Chain are Orbit L3s.
Best for: DeFi protocols, perpetuals (GMX), lending (Aave V3), Rust/WASM contracts (Stylus).
Optimism (OP Mainnet)
The OP Stack chain. Optimism's core value is not the chain itself but the Superchain vision -- a network of interoperable L2s all running the OP Stack.
| Fact | Value |
|---|---|
| Type | Optimistic rollup (OP Stack / Bedrock) |
| Chain ID | 10 |
| Testnet Chain ID | 11155420 (OP Sepolia) |
| Block time | 2 seconds |
| Native token | ETH |
| Withdrawal to L1 | 7 days |
| RPC endpoint | https://mainnet.optimism.io |
| Block explorer | optimistic.etherscan.io |
The Superchain: OP Stack chains (Optimism, Base, Zora, Mode, Celo, Worldchain) share a common message-passing layer and aim for native interoperability. Moving assets between Superchain members will eventually be seamless. Still being built out.
OP Stack: The open-source rollup framework. If you want to launch your own L2, OP Stack is the most popular choice. Coinbase (Base), Celo, and Sony (Soneium) all chose it.
Best for: Governance-focused projects, launching your own L2 (OP Stack), RetroPGF ecosystem.
Base
Coinbase's L2. The cheapest major L2. Largest user base. If your users are crypto-curious normies coming from Coinbase, Base is your chain.
| Fact | Value |
|---|---|
| Type | Optimistic rollup (OP Stack) |
| Chain ID | 8453 |
| Testnet Chain ID | 84532 (Base Sepolia) |
| Block time | 2 seconds |
| Native token | ETH |
| Withdrawal to L1 | 7 days |
| RPC endpoint | https://mainnet.base.org |
| Block explorer | basescan.org |
Why Base wins for consumer apps:
- Coinbase distribution: Hundreds of millions of Coinbase users can bridge to Base directly from the app.
- Coinbase Smart Wallet: Passkey-based wallet, no seed phrase, gasless transactions for onboarded users. The best onboarding UX in crypto.
- Cheapest fees: Base consistently has the lowest L2 fees due to aggressive blob posting and sequencer optimization.
- Farcaster: The decentralized social protocol is heavily Base-native. Social dApps build here.
// Coinbase Smart Wallet integration
import { createCoinbaseWalletSDK } from '@coinbase/wallet-sdk';
const sdk = createCoinbaseWalletSDK({
appName: 'My dApp',
appChainIds: [8453], // Base
});
const provider = sdk.getProvider();
Best for: Consumer apps, social dApps (Farcaster), cheapest transactions, Coinbase wallet users.
zkSync Era
The leading zkEVM L2 with native account abstraction. Every account on zkSync can be a smart contract account -- no separate standard needed.
| Fact | Value |
|---|---|
| Type | zk-rollup (zkEVM) |
| Chain ID | 324 |
| Testnet Chain ID | 300 (zkSync Sepolia) |
| Block time | ~1-2 seconds |
| Native token | ETH |
| Withdrawal to L1 | ~1 hour (zk proof verification) |
| RPC endpoint | https://mainnet.era.zksync.io |
| Block explorer | explorer.zksync.io |
Native account abstraction: On zkSync, every account is a smart contract by default. No ERC-4337 bundlers, no separate infrastructure. Users can:
- Pay gas in any ERC-20 token (paymasters are built-in).
- Batch multiple transactions atomically.
- Set custom signature validation logic.
// zkSync native paymaster -- users pay gas in USDC
// No bundler, no special infrastructure
IPaymaster paymaster = IPaymaster(PAYMASTER_ADDRESS);
// Paymaster covers ETH gas, charges user in USDC
Withdrawal advantage: Because zkSync uses validity proofs (zk proofs), withdrawals finalize in ~1 hour, not 7 days. The proof mathematically guarantees the state transition was correct. No challenge period needed.
Best for: Enterprise apps, native account abstraction, gas sponsorship via paymasters, fast withdrawals to L1.
Scroll
EVM-equivalent zk-rollup. "Equivalent" means existing Solidity contracts, Foundry tests, and deployment scripts work without modification. No custom compiler, no WASM, no quirks.
| Fact | Value |
|---|---|
| Type | zk-rollup (zkEVM, bytecode-level equivalence) |
| Chain ID | 534352 |
| Testnet Chain ID | 534351 (Scroll Sepolia) |
| Block time | ~3 seconds |
| Native token | ETH |
| Withdrawal to L1 | ~1-4 hours |
| RPC endpoint | https://rpc.scroll.io |
| Block explorer | scrollscan.com |
# Deploy to Scroll -- identical to mainnet deployment
forge create src/MyContract.sol:MyContract \
--rpc-url https://rpc.scroll.io \
--private-key $KEY \
--verify \
--verifier blockscout \
--verifier-url https://blockscout.scroll.io/api/
Best for: Maximum EVM compatibility with zk proof security. Zero migration effort from mainnet contracts.
Linea
Consensys-backed zkEVM. Built by MetaMask's parent company. Tightest MetaMask integration.
| Fact | Value |
|---|---|
| Type | zk-rollup (zkEVM) |
| Chain ID | 59144 |
| Testnet Chain ID | 59141 (Linea Sepolia) |
| Block time | ~2-3 seconds |
| Native token | ETH |
| Withdrawal to L1 | ~1 hour |
| RPC endpoint | https://rpc.linea.build |
| Block explorer | lineascan.build |
Best for: MetaMask-first user bases. Infura integration (same parent company).
Starknet
Not EVM-compatible. Uses Cairo language and the STARK proof system. Mentioned for completeness but requires a fundamentally different development stack.
| Fact | Value |
|---|---|
| Type | zk-rollup (STARK proofs, not EVM) |
| Chain ID | Not EVM-standard (uses felt-based addressing) |
| Language | Cairo (not Solidity) |
| Native token | ETH (STRK for gas) |
| RPC endpoint | https://starknet-mainnet.public.blastapi.io |
| Block explorer | starkscan.co |
Best for: Teams that want maximum ZK scalability and are willing to learn Cairo. Not recommended if you are coming from the EVM ecosystem.
Polygon zkEVM -- Do Not Build Here
Polygon is sunsetting the zkEVM chain. Do not start new projects on it. Existing projects should plan migration.
| Fact | Value |
|---|---|
| Chain ID | 1101 |
| Status | Being wound down |
| Alternative | Polygon PoS (Chain ID 137) remains active but is a sidechain, not a rollup |
Gas Cost Comparison
Real costs for common operations in early 2026. All prices assume ETH at ~$2,000.
| Operation | Ethereum L1 | Arbitrum | Base | zkSync | Scroll | Linea |
|---|---|---|---|---|---|---|
| ETH transfer | $0.034 | $0.003 | $0.001 | $0.002 | $0.003 | $0.002 |
| ERC-20 transfer | $0.10 | $0.008 | $0.003 | $0.005 | $0.008 | $0.005 |
| Uniswap swap | $0.30 | $0.02 | $0.008 | $0.01 | $0.02 | $0.01 |
| NFT mint | $0.24 | $0.015 | $0.006 | $0.008 | $0.015 | $0.008 |
| Contract deploy (small) | $1-5 | $0.10 | $0.04 | $0.05 | $0.10 | $0.05 |
| Contract deploy (large) | $5-20 | $0.30 | $0.15 | $0.20 | $0.30 | $0.20 |
These change daily. Always verify:
cast gas-price --rpc-url https://mainnet.base.org # Base
cast gas-price --rpc-url https://arb1.arbitrum.io/rpc # Arbitrum
cast gas-price --rpc-url https://mainnet.era.zksync.io # zkSync
Base is consistently the cheapest because Coinbase optimizes sequencer operations aggressively.
Chain IDs Reference
| Chain | Chain ID | Type |
|---|---|---|
| Ethereum Mainnet | 1 |
L1 |
| Sepolia (testnet) | 11155111 |
L1 testnet |
| Arbitrum One | 42161 |
Optimistic rollup |
| Arbitrum Sepolia | 421614 |
Testnet |
| Optimism | 10 |
Optimistic rollup |
| OP Sepolia | 11155420 |
Testnet |
| Base | 8453 |
Optimistic rollup |
| Base Sepolia | 84532 |
Testnet |
| zkSync Era | 324 |
zk-rollup |
| zkSync Sepolia | 300 |
Testnet |
| Scroll | 534352 |
zk-rollup |
| Scroll Sepolia | 534351 |
Testnet |
| Linea | 59144 |
zk-rollup |
| Linea Sepolia | 59141 |
Testnet |
| Celo | 42220 |
OP Stack L2 |
| Polygon PoS | 137 |
Sidechain |
| Polygon zkEVM | 1101 |
zk-rollup (sunsetting) |
RPC Endpoints
| Chain | Public RPC | Notes |
|---|---|---|
| Ethereum | https://eth.llamarpc.com |
MEV-protected |
| Arbitrum | https://arb1.arbitrum.io/rpc |
Official |
| Optimism | https://mainnet.optimism.io |
Official |
| Base | https://mainnet.base.org |
Official |
| zkSync | https://mainnet.era.zksync.io |
Official |
| Scroll | https://rpc.scroll.io |
Official |
| Linea | https://rpc.linea.build |
Official |
For production, use paid providers (Alchemy, Infura, QuickNode). Public RPCs rate-limit aggressively.
Block Explorers
| Chain | Explorer | URL |
|---|---|---|
| Ethereum | Etherscan | etherscan.io |
| Ethereum | Blockscout | eth.blockscout.com |
| Arbitrum | Arbiscan | arbiscan.io |
| Optimism | OP Etherscan | optimistic.etherscan.io |
| Base | Basescan | basescan.org |
| zkSync | zkSync Explorer | explorer.zksync.io |
| Scroll | Scrollscan | scrollscan.com |
| Linea | Lineascan | lineascan.build |
Decision Matrix
What are you building?
|
+-- DeFi protocol (lending, perps, complex finance)
| +-- Arbitrum -- deepest DeFi ecosystem, Camelot, GMX, Aave
|
+-- Consumer app (social, gaming, NFTs)
| +-- Base -- cheapest fees, Coinbase Smart Wallet, Farcaster
|
+-- App needing fast withdrawals to L1
| +-- zkSync or Scroll -- zk proofs, no 7-day wait
|
+-- App where users pay gas in ERC-20 tokens
| +-- zkSync -- native paymasters, no bundler needed
|
+-- Rust/WASM smart contracts
| +-- Arbitrum (Stylus)
|
+-- Launch your own L2/L3 chain
| +-- OP Stack -- most popular framework, Superchain interop
| +-- Arbitrum Orbit -- L3 settling to Arbitrum
|
+-- MetaMask-first user base
| +-- Linea -- deepest MetaMask integration
|
+-- Maximum EVM compatibility, zero migration effort
| +-- Scroll -- bytecode-level equivalence
|
+-- Enterprise with native account abstraction
| +-- zkSync -- every account is a smart contract
|
+-- "I just need it cheap and do not care about ecosystem"
+-- Base -- lowest fees, good enough for most things
Quick summary
| Use case | First choice | Why |
|---|---|---|
| DeFi | Arbitrum | Deepest liquidity, GMX, Aave, Camelot |
| Consumer | Base | Cheapest, Coinbase wallet, Farcaster |
| Enterprise | zkSync | Native AA, paymasters, fast withdrawals |
| EVM purity | Scroll | Bytecode-level equivalence, zk security |
| Launch your own chain | OP Stack | Most popular, Superchain interop |
| MetaMask users | Linea | Consensys integration |
Bridging
Native Bridges
Every L2 has an official bridge. These are the most secure because they use the rollup's own proof system.
| Bridge | L1->L2 | L2->L1 |
|---|---|---|
| Arbitrum | ~10 min | 7 days |
| Optimism | ~10 min | 7 days |
| Base | ~10 min | 7 days |
| zkSync | ~10 min | ~1 hour |
| Scroll | ~15 min | ~1-4 hours |
The 7-day withdrawal period on optimistic rollups is the challenge period during which anyone can submit a fraud proof. This is the security model, not a bug.
Third-Party Bridges (Fast)
| Bridge | Speed | Fee | Best for |
|---|---|---|---|
| Across | ~1-5 min | 0.04-0.12% | L2<->L2, fast L2->L1 |
| Stargate (LayerZero) | ~1-5 min | 0.06% | Cross-chain, many chains |
| Hop Protocol | ~5-15 min | Variable | Ethereum ecosystem |
Across is the current leader for Ethereum ecosystem bridges. Lowest fees for most routes.
Bridging rules
- Small amounts: Use third-party bridges for speed.
- Large amounts ($10K+): Use native bridges for security. The 7-day wait is worth it.
- Never bridge your entire treasury through a third-party bridge. They are smart contracts that can have bugs.
- Always verify the bridge contract address before approving tokens.
- L2->L2 transfers: Third-party bridges only. Native bridges only go L1<->L2.
L2 Contract Differences
Most L2s are EVM-compatible, but not all behavior is identical:
| Difference | Details |
|---|---|
| Block numbers | L2 block numbers differ from L1. block.number returns the L2 block. |
| Timestamps | May have different granularity. |
| Gas costs | Opcodes have different costs on different L2s. |
| Precompiles | Some L2s add custom precompiles (zkSync has system contracts). |
| CREATE2 | Addresses may differ on zkSync due to different bytecode hashing. |
msg.sender |
Same behavior, but cross-chain messages use different aliasing. |
Test on the actual L2 you plan to deploy to. "Works on mainnet" does not guarantee "works on L2" for edge cases.
Summary
- DeFi --> Arbitrum. Deepest L2 DeFi ecosystem, Stylus for Rust/WASM.
- Consumer --> Base. Cheapest fees, Coinbase Smart Wallet, largest user base.
- Enterprise --> zkSync. Native account abstraction, paymasters, fast withdrawals.
- EVM purity --> Scroll. Bytecode-level equivalence, zk proof security.
- Your own chain --> OP Stack. Most popular framework, Superchain interop.
- MetaMask-first --> Linea. Consensys integration.
- The dominant DEX is NOT Uniswap on every chain. Check before integrating.
- Polygon zkEVM is sunsetting. Do not build on it.
- All L2 sequencers are centralized. Decentralization is coming but not here yet.
- Native bridges are secure but slow (7 days for optimistic rollups). Use Across for speed.