An optimistic rollup executes transactions off-chain and assumes they are valid by default (the "optimistic" part). It posts compressed transaction data to Ethereum L1, and anyone can challenge a result by submitting a fraud proof during a 7-day dispute window. If fraud is proven, the invalid batch is reverted. If no challenge occurs, the batch is finalized. Arbitrum and Optimism are the largest examples.
What Is an Optimistic Rollup (Mechanics)?
3 min read
The short version
Optimistic rollups work on an "innocent until proven guilty" model. They process transactions fast and cheap, post the results to Ethereum, and say "we trust this is correct unless someone objects within 7 days." Anyone watching can raise their hand and say "that is wrong, here is proof." If they are right, the bad result gets thrown out. This approach is simpler than ZK proofs but requires a waiting period for withdrawals.
How It Works
Architecture: (1) Sequencer: receives user transactions, orders them, and executes them on the L2 state. Posts compressed transaction data (calldata or blobs) to L1. (2) State commitments: the sequencer posts output roots (claimed L2 state after each batch) to L1. (3) Challenge period: for 7 days, anyone (a "challenger" or "watcher") can dispute an output root by submitting a fraud proof. (4) Fraud proofs: demonstrate that a specific state transition was computed incorrectly. On Arbitrum, this is an interactive "bisection" game narrowing the dispute to a single instruction. On Optimism (Cannon), it is a single-step execution proof on L1. (5) Finalization: after 7 days without successful challenge, the output root is finalized and withdrawals to L1 can complete. Key implication: native withdrawals from optimistic rollups to L1 take 7 days. Third-party bridges offer instant withdrawals by fronting liquidity (for a small fee).
Withdrawing ETH from Arbitrum to Ethereum mainnet
You have 5 ETH on Arbitrum and want to move it to Ethereum L1. Native withdrawal path: (1) You initiate withdrawal on Arbitrum. The L2 records it and includes it in the next batch posted to L1. (2) The 7-day challenge period begins. (3) After 7 days with no fraud proof challenging the batch, you call a finalize function on L1. (4) The bridge contract releases 5 ETH to your L1 address. Total time: ~7 days. Alternative (fast bridge): You use Across Protocol. Across has liquidity providers on both chains. You send 5 ETH to Across on Arbitrum. Within 2-10 minutes, Across sends you ~4.99 ETH on L1 (0.01 ETH fee). Across waits the 7 days itself and reclaims from the native bridge. You get speed; they earn the fee for bearing the time risk.
What People Get Wrong
The 7-day challenge period is just for show
Fraud proofs have been submitted and disputes have been won in testing. The period is real protection: without it, a malicious sequencer could post false state (claiming they own your funds) and finalize it before anyone notices. The 7 days gives the community time to detect and challenge fraud.
You must wait 7 days for all Arbitrum transactions
Only withdrawals to L1 require the wait. Transactions within Arbitrum confirm in seconds. Transfers between Arbitrum accounts are instant. The 7-day period only applies to the L1 finalization of state (relevant for bridging out to Ethereum mainnet).
Optimistic rollups are less secure than ZK rollups
Both achieve equivalent security levels assuming honest watchers exist for optimistic (at least one honest party must challenge fraud) and assuming ZK proof systems are correctly implemented. The security models are different, not necessarily unequal. Optimistic is more battle-tested with years of production deployment; ZK is mathematically stronger but newer in production.
Keep Reading
Sources & Further Reading
- Arbitrum Docs
Technical documentation for the Arbitrum optimistic rollup
- Optimism Docs
Documentation for the OP Stack and Optimism ecosystem
- L2Beat Optimistic Rollups
Risk assessments for all optimistic rollup implementations
Questions People Also Ask
- What is the difference between Arbitrum and Optimism?
- Both are optimistic rollups with similar security models. Key differences: fraud proof mechanism (Arbitrum uses interactive bisection, Optimism uses single-step Cannon proofs), token economics (ARB vs. OP governance tokens), and ecosystem focus (Arbitrum has more DeFi TVL, Optimism focuses on the Superchain/OP Stack for building new rollups). For users, the experience is very similar.
- What is the OP Stack / Superchain?
- The OP Stack is open-source rollup software from Optimism that lets anyone deploy their own optimistic rollup (like Base by Coinbase, Zora, and others). The Superchain vision is a network of interoperable rollups sharing security and communication. It is a framework for mass-producing L2s.
- Are optimistic rollups fully decentralized?
- Not yet. Both Arbitrum and Optimism currently have centralized sequencers with decentralization roadmaps. Fraud proofs are now live on Arbitrum (permissioned challengers) and Optimism (Cannon system launching). Full decentralization (permissionless challenging, decentralized sequencing) is in progress but not complete as of 2024.