An optimistic rollup is a Layer 2 (L2) scaling technique that executes transactions off the main blockchain, then “rolls up” the results into compressed batches posted to the base layer, often Ethereum. It is called optimistic because it assumes transactions are valid by default, and only checks them on-chain if someone challenges a batch.
How optimistic rollups work
In an optimistic rollup, users submit transactions to an L2 environment where they are ordered and executed, typically by a sequencer. Instead of recording every transaction directly on Ethereum, the rollup publishes a summary of state changes plus enough transaction data to Ethereum so anyone can reconstruct the rollup’s state. This approach increases throughput and can reduce fees because the base layer stores less computation and only verifies the rollup’s commitments.
A practical example is swapping tokens or using a lending app on an optimistic rollup. The trade is processed quickly on L2, while Ethereum acts as the settlement and data availability layer that anchors the rollup’s history.
Security model and key trade-offs
Optimistic rollups rely on fraud proofs. If a batch contains an invalid transaction, watchers can submit a challenge during a defined dispute window. The protocol then re-executes the disputed portion on Ethereum to determine the correct outcome, penalizing dishonest behavior.
This model introduces trade-offs. Withdrawals from L2 back to Ethereum can be slower because users may need to wait out the challenge period for finality. There is also reliance on sequencer liveness for smooth UX, although funds remain protected by the ability to exit via the base layer.
Why this concept matters
Optimistic rollups are a core path to scaling smart contract platforms, enabling more users and applications without sacrificing base-layer security guarantees, which is critical for mainstream blockchain adoption.