Technical definition
In rollups, a sequencer is responsible for collecting, ordering, and executing transactions off-chain before batching them into a single compressed transaction and submitting it to the base layer. It acts as a temporary central authority for transaction ordering, which is later verified by the rollup's smart contract. Sequencers may also pre-confirm transactions to users, providing faster finality than the base layer alone. However, they introduce centralization risks, as users must trust the sequencer to order transactions fairly and not withhold or reorder them maliciously.
An analogy
Think of a sequencer like a restaurant host who seats diners in the order they arrive. The host ensures everyone gets a table in a fair sequence, even though the kitchen (the base layer) is slow to process orders. Without the host, diners might argue over who arrived first, but the host could also play favorites or skip some diners entirely.
Why it matters
Sequencers enable rollups to process transactions faster and cheaper than the base layer by batching and compressing them. They are a trade-off for scalability, reducing congestion on the base layer while introducing temporary centralization that must be mitigated.
Where it came from
Sequencers emerged with the rise of rollups as a solution to Ethereum's scalability challenges, first appearing prominently in optimistic rollups like Optimism (launched in 2021) and later in zk-rollups like zkSync Era (2023). Their design reflects the need to balance speed, cost, and decentralization in layer-2 scaling solutions.
Example in practice
In Optimism, a user sends a transaction to the Optimism network. The sequencer receives the transaction, orders it among others, executes it locally, and then submits a batch of transactions to Ethereum. Users see their transactions confirmed quickly, while the batch is later verified by the Optimism smart contract on Ethereum.
Common misconceptions
- Sequencers are decentralized → Correction: Most sequencers are centralized or semi-centralized, though some rollups are experimenting with decentralized sequencer designs.
- Sequencers guarantee instant finality → Correction: While sequencers provide fast pre-confirmations, finality is only achieved once the batch is settled on the base layer, which may take minutes or hours.
- Sequencers are the same as validators → Correction: Validators verify batches after they are submitted to the base layer, while sequencers order and execute transactions off-chain before submission.
Risks & limitations
- Centralization risk: A malicious or faulty sequencer could censor transactions, reorder them unfairly, or withhold batches, undermining the rollup's trust assumptions.
- MEV extraction: Sequencers may prioritize transactions that generate MEV (e.g., arbitrage), leading to unfair ordering for regular users.
- Single point of failure: If the sequencer goes offline or is compromised, transaction processing stalls until recovery or fallback mechanisms activate.
- Trust in pre-confirmations: Users may act on pre-confirmed transactions that are later reverted if the batch fails verification on the base layer.