Qaynaq LABS · TOOLS

CRYPTO GLOSSARY

Sequencer (in rollups)

A sequencer is the component in a rollup that orders transactions before they are submitted to the base layer (e.g., Ethereum), ensuring consistency and finality for users.

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.

Related terms

About "Sequencer (in rollups)" in crypto

Cryptocurrency vocabulary moves faster than any other technical field. New terms appear weekly, old terms quietly change meaning, and most "definitions" online were written by someone trying to sell you something. Qaynaq Labs' crypto glossary aims for the opposite: neutral, accurate, skeptical explainers that include the downside.

This entry covers the technical mechanics, a real-world analogy, where the concept came from, and what could go wrong. Pair it with the related terms to build a working mental model of how the pieces fit together.

Frequently asked

Can sequencers be decentralized?

Yes, some rollups are exploring decentralized sequencer designs, such as using multi-party computation (MPC) or proof-of-stake mechanisms to distribute sequencing responsibilities. However, fully decentralized sequencers are still experimental and may introduce complexity or reduced performance.

What happens if a sequencer is malicious?

If a sequencer acts maliciously (e.g., censoring transactions or reordering them unfairly), users can challenge the sequencer's actions by submitting fraud proofs (in optimistic rollups) or validity proofs (in zk-rollups) to the base layer. The rollup's smart contract will then penalize the sequencer or revert invalid transactions.

Do all rollups use sequencers?

No. Some zk-rollups, like StarkNet, use alternative designs (e.g., provers that generate validity proofs without a traditional sequencer). However, most rollups rely on sequencers for transaction ordering and execution.

How do sequencers affect transaction fees?

Sequencers help reduce fees by batching and compressing transactions before submitting them to the base layer. However, sequencers may also extract value through MEV or prioritization, which can indirectly increase costs for users.