On this page
Optimistic Rollups: Cheap Layer 2 With Fraud Proofs
An optimistic rollup is a Layer 2 network that processes transactions away from Ethereum and posts a compressed record back to it, assuming the results are valid unless someone proves otherwise. This design can cut costs sharply while still settling on Ethereum for security.
Key Takeaways
- An optimistic rollup runs transactions off-chain and posts compressed data to Ethereum for settlement.
- It assumes batches are valid, with a challenge window, often about 7 days, to submit fraud proofs.
- The common mistake is forgetting that standard withdrawals back to Ethereum wait out that challenge window.
- Rollups can offer roughly 10x to 100x scalability gains, lowering the cost of using Ethereum.
Key Takeaways
- An optimistic rollup runs transactions off-chain and posts compressed data to Ethereum for settlement.
- It assumes batches are valid, with a challenge window, often about 7 days, to submit fraud proofs.
- The common mistake is forgetting that standard withdrawals back to Ethereum wait out that challenge window.
- Rollups can offer roughly 10x to 100x scalability gains, lowering the cost of using Ethereum.
What an Optimistic Rollup Is
Ethereum can only process a limited number of transactions per block, which makes fees rise when demand is high. A rollup is a separate chain, called Layer 2, that handles transactions in bulk and then records them on Ethereum, the Layer 1.
An optimistic rollup gets its name from how it treats those records. It posts the transaction data and assumes every batch is correct. The system only checks a batch if someone challenges it during a set window, which keeps normal operation cheap and fast.
The Intuition
Verifying every transaction directly on Ethereum is expensive, because every node must redo the work. The optimistic approach flips the default: trust the result, but make it possible to catch and punish cheating.
This works because of game theory. A party that submits a false batch can be challenged, proven wrong, and penalized, while honest behavior is cheap. As long as at least one honest participant is watching and ready to challenge, the system stays secure. The cost is a delay, since you have to leave time for challenges before treating a result as final.
This is sometimes called a one-honest-party assumption. The rollup does not need everyone to be honest, only that someone who can detect fraud is watching and willing to file a proof during the window. That is a weaker requirement than trusting the operator, but it does mean the security depends on active, capable watchers existing and on the challenge window being long enough for them to act.
How It Works
A node called the sequencer collects transactions, orders them, runs them off-chain, and submits the compressed data to Ethereum in batches. The data goes on Layer 1 so anyone can reconstruct the rollup's state.
After a batch is posted, a challenge period opens, often around 7 days. During that window, anyone can submit a fraud proof claiming a batch was computed incorrectly. Rather than replaying the whole batch on Ethereum, modern designs use an interactive bisection game: the challenger and the asserter repeatedly narrow the dispute down to a single computational step, which Ethereum then checks cheaply.
1. Sequencer batches and runs transactions off-chain
2. Compressed batch data is posted to Ethereum (calldata or blobs)
3. Challenge window opens (commonly ~7 days)
4. If a valid fraud proof is submitted, the bad batch is reverted and the challenger is rewarded
5. If no challenge succeeds, the batch becomes final
Posting data is the main cost. Since the March 2024 Dencun upgrade, rollups can post data as blobs through EIP-4844, which is far cheaper than the older calldata method and is pruned after about 18 days.
Worked Example
Imagine 1,000 users each swap tokens on an optimistic rollup. Instead of 1,000 separate Ethereum transactions, the sequencer bundles them into one batch and posts the compressed data once. The per-user cost falls dramatically, which is how rollups deliver roughly 10x to 100x scalability gains over using Ethereum directly.
Now say you want to move funds from the rollup back to Ethereum. A standard withdrawal must wait out the challenge window, often about 7 days, so a fraud proof can be filed if the batch was wrong. If you need the funds sooner, you can use a third-party liquidity provider who fronts you the money for a fee and waits out the window themselves. The waiting is the price of the optimistic security model.
Common Mistakes
-
Forgetting the withdrawal delay. Standard exits back to Ethereum wait out the challenge window, often around 7 days. Planning to move funds instantly will catch you out.
-
Assuming a rollup is as decentralized as Ethereum. Most rollups today run a single sequencer. That operator can censor or reorder transactions, even though it cannot steal funds outright.
-
Confusing optimistic with zero-knowledge rollups. Optimistic rollups assume validity and use fraud proofs after the fact. ZK rollups prove validity up front. The trust and timing models differ.
-
Treating bridged tokens as native assets. Tokens on a rollup depend on the rollup's bridge and contracts. A bug there can break the link to the Layer 1 asset.
-
Ignoring data availability costs. The cost of posting data to Ethereum dominates rollup fees. When Layer 1 is congested or blob space is scarce, rollup fees can rise too.
Frequently Asked Questions
What is an optimistic rollup in simple terms? It is a separate chain that handles Ethereum transactions in bulk to save money, then records them on Ethereum. It assumes the records are correct unless someone proves a batch was wrong.
How does an optimistic rollup affect investment decisions? Lower fees make small transactions practical, but the withdrawal delay and reliance on a single sequencer are real risks. You should account for the challenge window when moving funds and weigh sequencer centralization.
What is a real-world example of an optimistic rollup? General-purpose rollups bundle thousands of user transactions into one batch posted to Ethereum, cutting per-user costs while inheriting Ethereum's settlement security. They typically deliver about 10x to 100x more throughput than using Ethereum directly.
How can investors use optimistic rollups effectively? Understand the standard 7-day exit window, use a reputable liquidity bridge if you need faster withdrawals, and check how decentralized the sequencer is. As a rule, treat fast bridges as a paid convenience, not a free feature.
How is an optimistic rollup different from a ZK rollup? An optimistic rollup assumes batches are valid and relies on fraud proofs and a challenge window. A ZK rollup submits a validity proof with each batch, so it can finalize and allow withdrawals without the long wait.
Sources
- Ethereum.org. "Optimistic Rollups." https://ethereum.org/en/developers/docs/scaling/optimistic-rollups/
- Ethereum.org. "Layer 2." https://ethereum.org/en/layer-2/
- Ethereum.org. "Zero-Knowledge Rollups." https://ethereum.org/en/developers/docs/scaling/zk-rollups/
- Ethereum.org. "Danksharding and Proto-Danksharding (EIP-4844)." https://ethereum.org/en/roadmap/danksharding/
Disclaimer
This article is educational content only and is not financial advice. Nothing here is a recommendation to buy, sell, or hold any security. Consult a licensed advisor before making investment decisions.
Back to your knowledge path