Book a free call

What Is a Rollup Sequencer, and Why Does It Matter?

A rollup sequencer orders transactions before they are proven and posted to the main chain. Here is how it works, who runs it, and what can go wrong.

Hertiv engineering teamReviewed by a senior engineer
7 min read
What Is a Rollup Sequencer, and Why Does It Matter?
On this page

Short answer

A rollup sequencer is the component that collects user transactions, puts them in order, and groups them into batches for a layer 2 rollup. It decides which transaction comes first, publishes the ordered batch so the rollup can execute it, and in most rollups today it is run by a single operator. That ordering power shapes speed, fees and fairness.

What is a rollup sequencer?

A rollup sequencer is the part of a layer 2 rollup that takes in user transactions, decides their order, and bundles them into a batch for execution. Think of it as the rollup's traffic controller: users send transactions to the sequencer, the sequencer arranges them, and the rollup then runs them in that order and posts the result to the main chain.

The sequencer does not decide whether a transaction is valid. Validity is checked when the batch is executed and proven, either by a fraud proof in an optimistic rollup or by a validity proof in a ZK rollup. The sequencer only controls order and timing, which is still powerful because order decides who gets a trade, a mint or a liquidation first.

Most rollups today run a single sequencer operated by the team that built the rollup. Users get fast confirmations because one server can order transactions in milliseconds, and the design is simple to run. The trade-off is trust: users must rely on that operator to include their transactions and to order them fairly.

How does a sequencer order transactions?

A sequencer orders transactions by taking them from its mempool, the waiting area for incoming transactions, and arranging them into a batch. The usual rule is first come, first served: the transaction that arrives first goes first. The sequencer then signs the batch and sends it to the rollup's execution layer and to the data availability layer.

Once the batch is published, anyone can check that the rollup executed the transactions in the published order. That check is what keeps a sequencer honest about execution, even if it can still choose which transactions to include and in what order they arrive. Some sequencers also give soft confirmations, telling the user their transaction is in a batch before the batch is final on the main chain.

Soft confirmations are fast, often under a second, which is why rollups feel instant to use. But they are not final. Finality comes later, when the batch is posted to the main chain and proven. Until then, a sequencer could in theory reorder or drop a transaction, which is why users and developers care about who runs it.

Centralised, decentralised and shared sequencers

Sequencers come in three designs, and the choice shapes how much trust users must place in the operator. The table below compares them.

DesignWho ordersSpeedMain risk
CentralisedOne operatorFastestSingle point of failure
DecentralisedMany operators in turnSlowerCoordination cost
SharedOne service for many rollupsFastShared failure affects all

A centralised sequencer is one server run by one team. It is fast and simple, and it is what most rollups use today. The risk is a single point of failure: if the operator goes offline, censors a transaction or extracts value by reordering, users have little recourse except to leave.

A decentralised sequencer spreads ordering across many operators who take turns or vote on the order. It removes the single point of failure but adds coordination cost, so confirmations can be slower.

A shared sequencer serves several rollups at once, letting them order transactions together and settle across chains in one step, which helps applications that span rollups. The based design, where the main chain orders transactions instead of a separate sequencer, is covered in the explainer of what based rollups are.

Why do sequencers matter for blockchain scaling?

Sequencers matter for scaling because ordering is the bottleneck that decides how fast a rollup can confirm transactions. A single sequencer can order thousands of transactions per second without waiting for a network of validators to agree, which is why rollups can offer near-instant confirmations while the main chain finalises batches more slowly.

They also decide the user experience. When a sequencer is fast and reliable, a swap, a game move or a payment confirms in under a second. When it is slow or down, the whole rollup stalls, even though the main chain is fine. For that reason, sequencer uptime is one of the first things teams check when choosing a rollup to build on.

Ordering also affects fees. A sequencer that batches efficiently packs more transactions into each batch, which spreads the cost of posting data to the main chain across more users. Poor batching means higher costs per transaction, so sequencer design shows up directly in what users pay. The rollup's data costs are covered in more detail in the guide to blockchain rollup solutions.

What can go wrong with a sequencer?

The main risks of a sequencer are censorship, downtime and unfair ordering. A sequencer can refuse to include a transaction, which delays or blocks a user. It can go offline, which halts the rollup until it returns or a fallback takes over. And it can reorder transactions to capture value, for example by placing its own trade ahead of a large swap.

These risks are real because ordering power is valuable. In decentralised finance, the order of trades decides who profits from a price move, so a sequencer that reorders trades can take that profit for itself. This is the same maximum extractable value problem that exists on the main chain, moved into the sequencer's hands.

Mitigations exist. Force inclusion lets a user submit a transaction directly to the main chain if the sequencer ignores it. Escape hatches let users withdraw funds even when the sequencer is down. And decentralised sequencing removes the single operator entirely. Each mitigation adds complexity, so teams weigh it against the cost of running a simpler design.

How to choose or build a sequencer setup

Choose or build a sequencer setup by starting from what your application needs, then matching the design to that need rather than picking the most decentralised option by default.

  1. Define the confirmation time your users need. A game or trading app may need sub-second soft confirmations; a settlement app may not.
  2. Decide how much ordering trust you can accept. If fairness matters, plan for decentralised sequencing or a shared sequencer.
  3. Check the fallback. Confirm the rollup offers force inclusion and an escape hatch before you commit to it.
  4. Test the sequencer under load. Send bursts of transactions and measure confirmation time, not just the advertised maximum.
  5. Plan for downtime. Decide what your app shows users when the sequencer is unreachable, and how it recovers.
  6. Review the fee model. Understand who pays for batching and data posting, and how that cost changes as volume grows.

For teams building their own rollup, the sequencer is one of the first components to design, and it is worth testing with real transaction patterns before launch. The implementation side is covered in the guide to how to implement a ZK rollup.

Example (hypothetical): a sequencer outage on a trading rollup

Example (hypothetical): a trading rollup handles 12,000 swaps a day through a single sequencer. One morning the sequencer goes offline for 40 minutes. During the outage, no new swaps are ordered, so 400 swaps sit waiting and the app shows them as pending.

The rollup's escape hatch lets users withdraw funds directly through the main chain, so nobody's money is stuck. But the 400 pending swaps cannot execute until the sequencer returns. When it comes back, the sequencer orders the waiting swaps by arrival time, and 380 of them execute within two minutes. The other 20 fail because their price limits expired during the outage.

The team counts the cost: 20 failed swaps, 400 users who saw a frozen app, and 40 minutes of lost trading fees. It decides to add a backup sequencer that takes over automatically, so the next outage lasts seconds instead of 40 minutes. The lesson is that sequencer uptime is a product feature, not just an infrastructure detail.

What are the common mistakes?

The most common sequencer mistakes are assuming fast confirmations mean finality, ignoring the fallback path, and treating ordering as a technical detail instead of a trust decision that shapes who profits from your users' trades.

  • Treating a soft confirmation as final. The transaction is only final once the batch is proven on the main chain.
  • Building on a rollup with no force inclusion. If the sequencer can ignore your transaction forever, you have no exit.
  • Ignoring sequencer downtime. An app that freezes when the sequencer is down loses users fast.
  • Assuming ordering is fair. A single operator can reorder, so check the design before trusting it.
  • Choosing the cheapest sequencer. Low fees mean little if the sequencer is slow, unreliable or extractive.

Key takeaways

  • A sequencer orders transactions and batches them; it does not judge validity
  • Soft confirmations are fast but not final — finality comes when the batch is proven on the main chain
  • Centralised sequencers are fast, decentralised ones remove the single point of failure, shared ones serve many rollups
  • Ordering power creates censorship, downtime and value-extraction risks
  • Force inclusion and escape hatches are the checks to confirm before building on a rollup

Frequently asked questions

Is a sequencer the same as a validator?

No. A sequencer orders transactions and groups them into batches, while validators check the work and agree on the state of the chain. In a rollup, the main chain's validators provide finality, and the sequencer provides fast ordering. The two roles are separate, though some designs combine them.

Why do most rollups use a centralised sequencer?

A single sequencer is simpler to run and gives the fastest confirmations, often under a second. Many rollup teams start centralised and plan to decentralise later, once the rollup is stable. The trade-off is that users must trust one operator to include and order transactions fairly.

What is a shared sequencer?

A shared sequencer is a sequencing service used by several rollups at once. It orders transactions across those rollups together, which makes cross-rollup actions simpler and lets smaller rollups share infrastructure instead of running their own sequencer.

What happens if a sequencer goes offline?

The rollup stops confirming new transactions until the sequencer returns or a fallback takes over. Funds are not lost, because users can usually withdraw through the main chain using an escape hatch. The outage still freezes the app, which is why uptime matters.

What is force inclusion?

Force inclusion is a fallback that lets a user submit a transaction directly to the main chain when the sequencer ignores it. The rollup must then include it in a later batch. It is the main protection against a sequencer that censors transactions.

Do based rollups have sequencers?

Based rollups do not use a separate sequencer. The main chain's validators order the rollup's transactions as part of building main-chain blocks. That removes the sequencer operator entirely, at the cost of confirmation speed, since ordering follows the main chain's block time.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: blockchain systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building on a rollup and need the sequencing right? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Blockchain Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call