A sequencer (sequencer, the node that orders transactions) is one of the key components of Layer 2 scaling solutions, and of rollup networks in particular. Its job is to arrange transactions in a specific order, bundle them into a batch, and submit the result to the Layer 1 blockchain. This approach noticeably increases network throughput and lowers gas fees for end users.
The core problem sequencers solve is the limited scalability of base L1 networks such as Ethereum. When transactions are processed outside the main network and only compressed data or proofs are published to L1, the L2 network can handle a far greater volume of activity.
Sequencers emerged alongside the development of rollup technology and gained widespread adoption in the early 2020s as L2 solutions like Optimism and Arbitrum began gaining traction. Their design is at the heart of the efficiency and economic viability of the entire rollup architecture. In the blockchain stack, the sequencer sits between the user-facing L2 network and the underlying L1 settlement layer, acting as the central orchestrator of transaction flow: it is responsible for ordering and integrity.
MECHANICS
First, the sequencer receives transactions from users on the L2 network. It then orders them according to its internal logic, often giving priority to speed or a specific fee structure, and bundles this ordered sequence into a batch.
Once the batch is finalized on the L2 side, the sequencer prepares the data or proofs for submission to L1, and here the two types of rollups behave differently. In Optimistic Rollups, the transaction data itself is published so that fraud proofs can be applied in the event of a dispute. In ZK-Rollups, the sequencer works with a prover to generate a ZK-proof (ZK-SNARK or ZK-STARK) that confirms the correctness of the entire batch at once.
The gas cost on L1 is driven primarily by data availability and proof verification, so a great deal depends on how tightly the sequencer compresses transaction data. A good example here is EIP-4844 (the Dencun upgrade): it introduced blobs, a separate and cheaper way to publish data in L1 than using regular calldata, which immediately reduced costs at this step.
In addition, sequencers can interact with bundlers (bundlers, operation collectors) and paymasters (paymasters, fee-sponsoring parties) in systems following the ERC-4337 standard for account abstraction. This enables more complex transactions and flexible fee payment mechanics.
KEY COMPONENTS
The ecosystem around a sequencer consists of several roles, each responsible for a specific part of the transaction's journey:
- Sequencer Node: the primary software instance that orders, batches, and submits transactions.
- Transaction Pool (Mempool): temporary storage for pending transactions while the sequencer arranges them in order.
- Batcher: the component that groups ordered transactions into a single block for submission to L1.
- Prover: for ZK-Rollups, generates cryptographic proofs (ZK-SNARKs/STARKs) attesting to the correctness of L2 state transitions.
- Data Availability Layer: ensures transaction data is accessible on L1 or through dedicated DA layers like Celestia and EigenDA, which is critical for fraud proofs and state recovery.
- L1 Contract: the smart contract on the Layer 1 blockchain that receives batches and verifies proofs or manages dispute resolution.
- Operator/Validator: the entity or group operating the sequencer infrastructure, responsible for its uptime and performance.
APPLICATIONS
Sequencers underpin all major rollup solutions. Arbitrum One, the leading Optimistic Rollup, uses sequencers to process hundreds of transactions per second and noticeably reduces fees compared to Ethereum mainnet.
Optimism's OP Mainnet also relies on its sequencer to manage transaction flow, delivering high throughput and low latency. The efficiency of these sequencers directly affects the user experience and the adoption of decentralized applications (dApps) built on top of these L2s.
Projects like StarkNet are built on ZK-Rollups, where sequencers work in tandem with ZK-proof generation, offering strong security guarantees and scalability. The economic rationale for running a sequencer typically rests on the transaction fees collected within the L2.
To make this more concrete, consider a simple analogy with numbers. Suppose that without a rollup, each of 1,000 transactions is sent to Ethereum separately, and each one pays the full cost of writing to L1 on its own. A sequencer bundles those 1,000 transactions into a single batch: computation happens off-chain, and only the compressed data or a single proof for the entire batch is published to L1. As a result, the fixed publication cost is shared among all participants, and each individual user's share falls by roughly a thousandfold. It is exactly this "splitting the bill" effect that produces the fee difference between the main network and L2.
TRADE-OFFS
A centralized sequencer delivers high throughput and low latency because no complex consensus mechanism is needed within the L2 itself. The architecture is simpler and transactions finalize on L2 quickly. The price of that convenience is a single point of failure and a potential censorship risk.
Decentralized sequencer solutions aim to eliminate these risks by distributing the right to order transactions among multiple participants. This improves censorship resistance and overall network security, but adds coordination complexity, which can push latency up and leave overall throughput lower than a single well-optimized sequencer.
In essence, this is a classic manifestation of the scalability trilemma: high throughput and low latency often come at the cost of decentralization. The differences are easy to see in a table:
| Property | Centralized sequencer | Decentralized sequencer |
|---|---|---|
| Throughput | High | May be lower |
| Latency | Low | May increase due to coordination |
| Censorship resistance | Low (single point of failure) | High |
| Architectural complexity | Simple | Higher due to multi-party consensus |
As L2 technology matures, approaches are emerging to balance these factors, such as shared sequencer networks or hybrid models that combine the speed of a single operator with distributed control.