Sequencer

Layer 2 Updated May 2026

What is a Sequencer?

A sequencer is the critical component in a Layer 2 rollup that receives user transactions, orders them into a deterministic sequence, executes them against the current L2 state, and publishes the resulting state commitments (along with compressed transaction data) to the Layer 1 blockchain. The sequencer is, in effect, the rollup’s equivalent of a block producer—it determines which transactions get included, in what order, and at what time. Every major rollup—Arbitrum, Optimism, Base, zkSync, StarkNet—relies on a sequencer as the primary path for transaction processing.

The sequencer’s role is deceptively important. While the rollup’s security model (fraud proofs or validity proofs) ensures that the sequencer cannot execute invalid state transitions, the sequencer has significant power over transaction ordering, timing, and inclusion. This power has direct implications for MEV (Miner Extractable Value), censorship resistance, and user experience. A malicious or compromised sequencer could censor specific users, front-run transactions, or delay inclusion—though it could not steal funds or produce an invalid state (that would be caught by the rollup’s proof system).

Currently, most production rollups run a single centralized sequencer operated by the rollup’s core team. This is a pragmatic choice—centralized sequencers provide the best user experience (sub-second confirmation, simple architecture) and are easier to implement and debug. However, it creates a single point of failure and a centralization risk that the entire industry is actively working to address through decentralized sequencing protocols.

How It Works

The Sequencing Pipeline

Here’s what happens when you send a transaction to a rollup like Arbitrum or Optimism:

  1. Transaction submission: The user signs a transaction and sends it to the sequencer’s RPC endpoint (e.g., https://arb1.arbitrum.io/rpc for Arbitrum One). Alternatively, the user can submit the transaction directly to the L1 inbox contract (force inclusion), bypassing the sequencer at the cost of higher latency and gas fees.

  2. Transaction ordering: The sequencer receives the transaction and adds it to its local mempool. It then orders transactions (typically by gas price, priority fee, or a combination) and creates an L2 block. The sequencer can reorder transactions within certain constraints—an ability that creates MEV opportunities.

  3. Execution: The sequencer executes the ordered transactions against the current L2 state, producing a new state root. For optimistic rollups, the sequencer computes the state diff. For ZK rollups, the sequencer (or a separate prover) generates a validity proof.

  4. Data posting: The sequencer compresses the transaction data and publishes it to L1. Post-EIP-4844, this is done via blob transactions (much cheaper than calldata). The data posting frequency varies—Arbitrum typically batches every ~250ms to 1 second, while Optimism batches every ~2 seconds.

  5. State root publication: The sequencer publishes the new L2 state root (or batch hash) to the L1 rollup contract. This creates an on-chain record of the L2 state transition.

  6. Response to user: The sequencer returns the transaction receipt to the user, typically within 100ms–1 second of submission. This “soft confirmation” gives the user fast feedback, even though L1 finality will come later.

Sequencer Revenue Model

Sequencers earn revenue from two sources:

  • L2 gas fees: Users pay gas fees on the L2 network. A portion goes to the sequencer as the block producer. On Arbitrum, the sequencer collects the base fee; on Optimism, the sequencer collects priority fees.
  • L2 → L1 fees: Some rollups charge a margin on top of the L1 data posting cost. For example, if posting a batch to L1 costs $0.50 in blob fees, the rollup might charge users $0.75, keeping $0.25 as sequencer revenue.

In the first half of 2024, Arbitrum’s sequencer revenue was approximately $15–25 million per month from L2 gas fees. Sequencer revenue is typically shared with the rollup’s governance treasury through mechanisms like Arbitrum’s “sequencer fee sharing” program.

Centralized vs. Decentralized Sequencing

The current state of sequencer deployment across major rollups:

RollupSequencer ArchitectureOperatorDecentralization Status
Arbitrum OneSingle sequencerOffchain LabsShared/fraud-proof fallback
Optimism (OP Mainnet)Single sequencerOP LabsEmergency escape hatch to L1
BaseSingle sequencerCoinbaseBuilt on OP Stack
zkSync EraSingle sequencerMatter LabsZK proof-based verification
StarkNetSingle sequencerStarkWareProof-based + forced inclusion
Polygon zkEVMSingle sequencerPolygon LabsZK proof-based verification

Escape Hatches and Forced Inclusion

Every well-designed rollup includes an escape hatch mechanism that allows users to bypass a compromised or offline sequencer by submitting transactions directly to the L1 inbox contract. This ensures that the sequencer cannot permanently censor users.

The flow for forced inclusion:

  1. User sends a transaction directly to the L1 rollup inbox contract (costing L1 gas, ~$1–5)
  2. The L1 contract records the transaction in a “delayed inbox” queue
  3. The sequencer must eventually include this transaction in an L2 batch (if it doesn’t, the rollup’s fraud proof or validity proof system will catch the omission)
  4. The user’s transaction is eventually executed on L2, though with higher latency (minutes to hours vs. milliseconds)

Arbitrum’s Nitro tech stack also includes a forced inclusion deadline—if the sequencer doesn’t include a forced transaction within a configurable window, the system enters a “hurry up” mode that allows any party to create the next L2 block.

Decentralized Sequencing: The Road Ahead

Several protocols are building shared, decentralized sequencer networks:

  • Espresso Systems: A shared sequencer that provides L2s with a common, censorship-resistant ordering service. Transactions are ordered across multiple rollups, enabling atomic cross-rollup execution.
  • Astria: A sequencer layer that separates sequencing from execution. Rollups plug into Astria’s sequencer network without running their own sequencing infrastructure.
  • Radius: A decentralized, encrypted mempool and sequencer that prevents sequencers from seeing transaction content until ordering is finalized, eliminating MEV.
  • Constellation (by Rollup.wtf): A permissionless sequencing protocol where any node can participate in sequencing, with stakes and slashing to ensure liveness and correctness.

Real-World Examples

Arbitrum’s sequencer is the most battle-tested in production. During the March 2024 memecoin mania, Arbitrum’s sequencer processed over 3 million transactions per day, with peak TPS exceeding 100. The sequencer handles batch compression and L1 posting automatically. In one notable incident (January 2023), the Arbitrum sequencer went offline for ~7 minutes due to a software bug. During the outage, users could still submit transactions via L1 forced inclusion, though at much higher cost and latency.

Optimism’s OP Stack has introduced “sequencer rotation” as part of the Superchain architecture. The concept is that multiple L2s in the Superchain could share a rotating set of sequencers, with fault tolerance if one goes offline. As of early 2025, this is still in development but represents the most concrete plan for decentralized sequencing in a production rollup framework.

StarkNet’s Doorstopper mechanism is a unique approach to sequencer decentralization. If StarkNet’s sequencer is unavailable for too long, a “Doorstopper” contract allows anyone to propose an L1 state update directly. Combined with StarkNet’s validity proof system, this ensures that even a completely offline sequencer doesn’t compromise user funds.

Key Risks / Considerations

  • Single point of failure: A centralized sequencer going offline (as happened to Arbitrum, Polygon zkEVM, and others) blocks all transaction processing on the rollup. Forced inclusion mitigates this but provides a degraded experience.
  • Censorship risk: A centralized sequencer can choose to exclude specific transactions or addresses. While forced inclusion prevents permanent censorship, the increased cost and latency of L1 submission create a practical barrier.
  • MEV extraction: The sequencer can reorder transactions to extract MEV (sandwich attacks, front-running). Some rollups (like Flashbots on Ethereum) implement fair-ordering mechanisms to reduce this.
  • Regulatory risk: A centralized sequencer operator could be subject to legal pressure to censor transactions, similar to the concerns around centralized stablecoin issuers.
  • Liveness vs. safety trade-off: Decentralized sequencing protocols face a fundamental tension between liveness (fast transaction confirmation) and decentralization (more validators = slower consensus).

Frequently Asked Questions

Q: Can a sequencer steal my funds? A: No. The sequencer cannot produce an invalid state transition. On optimistic rollups, fraud proofs would catch any invalid execution. On ZK rollups, validity proofs mathematically guarantee correct execution. The sequencer can only control transaction ordering and timing, not the validity of the state transition.

Q: What happens if the sequencer goes down? A: Users can still submit transactions via L1 forced inclusion, but at higher cost (~$1–5 per transaction vs. ~$0.001–0.01 on L2) and with much higher latency (minutes to hours vs. milliseconds). The rollup itself does not become insecure—it just becomes slow and expensive.

Q: Why aren’t sequencers decentralized yet? A: Decentralized sequencing is significantly harder to implement than centralized sequencing. It requires fast consensus among multiple nodes (sub-second latency), sophisticated MEV management, and robust fault tolerance. Most rollup teams prioritized launching a working product with centralized sequencing first, with decentralization planned as a future upgrade.

Q: How does a sequencer differ from a block producer on L1? A: Functionally, they serve the same role (ordering and producing blocks). The key differences are: (1) L1 block producers are decentralized (Ethereum has ~900,000 validators; Solana has ~1,800), while rollup sequencers are typically single nodes; (2) L2 sequencers must also post data to L1 and manage the L1-L2 bridge; (3) L2 sequencers have additional responsibilities like batch compression and state root publication.