What is a rollup?

A rollup is a scaling approach that lets a blockchain handle more transactions: transactions are first executed in batches outside the main chain, and the results are then handed back to the main chain together with the data so they can be checked and recorded. The main chain is the blockchain that is itself responsible for confirming and recording transactions. The data handed back is enough for others to rebuild the records of accounts and balances; the checking and recording are done by programs on the main chain that run automatically according to preset rules, known as smart contracts. The name comes from the English phrase "roll up", meaning to bundle transactions together.

This article uses Ethereum as its example, so the main chain is Ethereum's mainnet, the network that actually runs and records transactions in real assets. Each block on mainnet, the unit used to package transactions, can handle only a limited amount of work. When demand exceeds capacity, network congestion occurs, and users who want their transactions included sooner may have to pay a higher gas fee (the network fee required to process a transaction). A rollup moves the work of executing transactions one by one off mainnet, so that mainnet mainly receives data and confirms the results of batches, reducing the mainnet processing capacity each transaction takes up. It is a layer 2 network, built on top of the main chain and relying on it to confirm results; it is not a fully independent blockchain.

The sections below explain, in turn, how a transaction makes its way through, the two ways results are confirmed, where fees come from, what publishing data achieves and the risks that remain.

How a rollup processes a transaction: from off-chain execution to mainnet record

The participant responsible for processing and submitting transactions is called the operator. The operator receives transactions through the nodes it runs (computers that take part in processing blockchain data), packages them and submits them to the rollup contract on Ethereum. In some rollups, a single operator decides the order of transactions; this role is called the sequencer. Going from depositing assets into a rollup to taking them back to Ethereum involves roughly five steps:

  1. Deposit: The user deposits ether (ETH), Ethereum's native asset, or another token into the bridge contract on mainnet that receives and pays out assets. The mainnet assets are locked in the contract, and the rollup credits the corresponding balance to the user's address.
  2. Submit a transaction: The user signs with their private key to authorize a transfer or a contract call, which lets the network verify that the user really initiated it. A private key is a secret string of numbers that only the user holds and that is used to authorize spending assets. The transaction is sent to the operator rather than directly to Ethereum mainnet to be executed one transaction at a time.
  3. Batch and post onchain: The operator groups multiple transactions into a batch, publishes the data needed to rebuild the records and submits a new state root. A state root is calculated with a hash, a function that converts data into a fixed-length number, and summarizes records such as the rollup's accounts and balances; when the records change, the calculated state root changes too.
  4. Confirm the result: An optimistic rollup first records the submitted state root and allows errors to be corrected within a set period; a zero-knowledge rollup (ZK rollup) first checks a proof and accepts the new state root only if the proof passes. The next section compares the two approaches side by side.
  5. Withdraw: The user initiates a withdrawal, and the corresponding balance on the rollup is canceled and can no longer be used for payments; once the batch containing the withdrawal meets the mainnet contract's confirmation conditions, the user takes the mainnet assets back under the contract's rules.

An operator showing "processed" does not mean Ethereum has confirmed the transaction. Even after the rollup contract accepts a batch, you still need to check whether the Ethereum block containing the operation has reached finality: under normal consensus conditions, a block that has reached finality will not be reversed. The sequencer's instant response should not be treated as final confirmation on mainnet.

Optimistic and ZK rollups take two different routes to confirming results

What distinguishes the two types of rollup is the basis on which the mainnet contract accepts the results submitted by the operator, not whether the data is public.

An optimistic rollup assumes results are correct at first and does not attach to each batch a validity proof showing that the computation is correct. After submission there is a challenge period, during which other nodes can re-execute the transactions using the public data; if they find an error, they submit a fraud proof pointing out which step was computed incorrectly. If the challenge succeeds, the incorrect result is corrected, and the funds the submitter put up as a bond may be cut. Only results that reach the end of the challenge period without a successful challenge are accepted. This requires at least one honest node to keep checking and to raise challenges in time.

A ZK rollup attaches a validity proof to each batch, using cryptography to show that the batch of transactions was computed according to the rules and that the result is correct. The Ethereum contract checks the proof instead of redoing each transaction, and accepts the new state root only if the proof passes. The "zero-knowledge" in the name does not mean transactions are confidential; see the FAQ below.

Comparison Optimistic rollup ZK rollup
How results are accepted Recorded first; accepted only if there is no successful challenge during the challenge period Validity proof checked first; accepted only if it passes
What checking depends on At least one honest node challenges errors in time The proof system's cryptographic assumptions and implementation are sound
Withdrawing through its own contracts Usually requires waiting out the challenge period; Ethereum's developer documentation describes it as about seven days, and specific rules vary No such challenge period, but still requires waiting for the batch to be processed and the proof to be generated and verified; specific networks may set additional delays
Main work and trade-offs Nodes redo transactions to find errors, and withdrawals involve a wait; transaction data must be published Generating proofs is computationally heavy; making Ethereum's existing contracts run directly and be provable requires additional design

The set of contracts a rollup itself uses to handle deposits and withdrawals is the bridge contract mentioned in step 1, often called the native bridge. Some service providers pay users assets on mainnet first, charge a fee and then wait for the native withdrawal to complete themselves. This is called a fast withdrawal. It does not cancel the original challenge period, and users also take on the risk that the service provider fails to deliver. Each of the two mechanisms has its own conditions, and the category alone is not enough to judge which network is better.

Rollup fees combine several costs and are usually lower because mainnet costs are shared

A rollup lets multiple transactions share mainnet costs instead of each transaction being fully executed on mainnet. It does this in three main ways:

  • Sharing fixed costs: Part of the fixed overhead of submitting a batch is borne jointly by multiple transactions.
  • Compressing data: Only the data needed to rebuild the records is published, leaving out repetitive content that can be derived from other information. Rollups differ in how they compress data and how much data they publish; there is no fixed compression ratio that applies to all transactions.
  • Using dedicated data space: EIP-4844, an Ethereum improvement proposal, introduced data blobs for rollups and others to publish data. Contracts cannot directly read the full data inside a blob. The network requires nodes to make the data available for at least about 18 days, after which it can be deleted; longer-term access depends on separate archiving. Blob space has its own fee calculation and is usually cheaper than data kept permanently in the execution record.

The fees users pay may include the costs of the operator processing transactions, publishing data to mainnet, and generating and checking proofs. For a ZK rollup, the cost of proofs is also part of the fee. Sharing and compression can lower the fee per transaction, but they do not guarantee it will always be lower than on mainnet; batch size, transaction complexity and demand for data space all affect the actual fee.

Rollups publish transaction data to Ethereum so that others can rebuild state

If the operator handed over only a result, others could not tell how it was reached or use it to recover the full account records. A rollup therefore also has to publish compressed transaction data, or state changes sufficient to rebuild records such as accounts, so that others can recover the latest state without relying on the operator to supply information privately.

Publishing this data serves three purposes:

  • Checking for errors: Checkers of an optimistic rollup need the data to redo the computation and construct a fraud proof.
  • Queries and withdrawals: Users need the relevant data to check their balances and to generate proofs that the assets belong to them and that a withdrawal has been included in a batch.
  • Coping with an operator that goes offline or refuses to process transactions: Other participants can recover the records from the data; if a specific rollup provides a mechanism for submitting transactions directly to the mainnet contract or for a forced exit, users can use it under its conditions without the operator's consent. Whether this can be done immediately also depends on delay rules and how it is implemented.

This is also an important difference from a sidechain. A sidechain runs independently, with its own set of participants confirming transactions under its own rules. It connects to Ethereum only through a bridge and does not rely on Ethereum contracts to confirm each batch of results in the way described above; its security depends on its own network. For an overall comparison of the different ways of keeping records off-chain, see the offchain entry.

Using a rollup still carries several risks

Mainnet can limit an operator's ability to submit incorrect results, but it cannot guarantee that every component of a rollup works properly:

  • Centralized or offline sequencer: A single operator may delay processing, change the order of transactions or refuse a particular transaction. Getting around it may require users to send a mainnet transaction themselves, pay mainnet fees and wait for the delay set by the contract.
  • Checking assumptions that fail: The honest-checking and cryptographic assumptions described above do not hold unconditionally. Some proof systems require a trusted setup that generates public parameters in advance, and mishandling the secret material could leave an opening for forged proofs.
  • Contract and implementation bugs: The programs responsible for recording, verifying and holding deposited assets may contain errors.
  • Additional service risks: Moving assets through a third-party fast withdrawal or other cross-chain services also depends on the assets and programs of those services working properly.

These are conditions of the mechanism that need to be checked; they do not constitute a recommendation to use any rollup or cross-chain service.

FAQ

Why can't ETH on a rollup and ETH on mainnet be moved around as if they were the same?

They are balance records on different networks. When you deposit through the native bridge, the mainnet ETH is locked and the rollup credits a corresponding balance; taking it back has to follow the bridge contract's rules. Both showing ETH does not make the two networks a single ledger, and whether a balance can be taken back still depends on the relevant contracts and mechanisms working properly.

Are transactions on a ZK rollup confidential?

The name does not guarantee confidentiality. "Zero-knowledge" is a property a proof can have: the verifier can confirm a public statement without learning any private inputs beyond that statement. Validity proofs used for scaling do not necessarily have this property as well. The data used to rebuild state is still published, either as compressed transaction data or as changes to records such as accounts. What information a network makes public as a whole depends on its specific design; anonymity cannot be inferred from the name.

Learn more about layer 1 networks, layer 2 networks, ZK rollups, zero-knowledge proofs, transactions per second and gas fees, or return to the cryptocurrency glossary.

References

Ansvarsfraskrivelse
Dette innholdet leveres kun til informasjonsformål og kan omhandle produkter som ikke er tilgjengelige i din region. Det er ikke ment å utgjøre (i) investeringsrådgivning eller en investeringsanbefaling, (ii) et tilbud eller en oppfordring til å kjøpe, selge eller hold krypto/digitale aktiva, eller (iii) finansiell, regnskapsmessig, juridisk eller skattemessig rådgivning. Holding av krypto/digitale aktiva, inkludert stablecoins, innebærer en høy grad av risiko og kan svinge betydelig. Du bør nøye vurdere om trading eller holding av krypto/digitale aktiva er egnet for deg i lys av din økonomiske situasjon. Ta kontakt med din juridiske/skattemessige/investeringsrådgiver for spørsmål om dine spesifikke omstendigheter. Informasjon (inkludert markedsdata og statistisk informasjon, om noen) som fremgår av dette innlegget er kun for generelle informasjonsformål. Selv om det er utvist all rimelig aktsomhet ved utarbeidelsen av disse dataene og grafene, påtas det intet ansvar for eventuelle faktafeil eller utelatelser som er kommet til uttrykk her.

Digitale aktiva er utsatt for volatilitet og er ikke forsikret. Ikke finansiell/investeringsrådgivning. Ikke alle produkter og tjenester tilbys i alle regioner. Unntak og vilkår og betingelser gjelder.

© 2026 OKX. Denne artikkelen kan gjengis eller distribueres i sin helhet, eller utdrag på 100 ord eller mindre av denne artikkelen kan brukes, forutsatt at slik bruk er ikke-kommersiell. Enhver gjengivelse eller distribusjon av hele artikkelen må også tydelig angi: «Denne artikkelen er © 2026 OKX og brukes med tillatelse.» Tillatte utdrag må sitere navnet på artikkelen og inkludere kildehenvisning, for eksempel «Artikkelnavn, [forfatternavn hvis aktuelt], © 2026 OKX.» Noe innhold kan være generert eller assistert av verktøy for kunstig intelligens (AI). Ingen bearbeidelser eller annen bruk av denne artikkelen er tillatt.

Relaterte artikler

Se mer
crypto-glossary-cover-v5.contentful

Crypto Glossary A–Z

Explore key crypto, blockchain, and trading terms through concise definitions, organized alphabetically for quick reference. [A](#a) · [B](#b) · [C](#c) · [D](#d) · [E](#e) · [F](#f) · [G](#g) · [H](#
3. des. 2026
12-03-glossary-thumnail/zero-knowledge-rollup

What is a ZK rollup?

**A zero-knowledge rollup (ZK rollup) is a type of [rollup](/learn/what-is-a-rollup): it hands the results of a batch of transactions to the main chain together with a proof, and the main chain accept
3. des. 2026
12-03-glossary-thumnail/zero-knowledge-proof

What is a zero-knowledge proof?

**A zero-knowledge proof (ZKP) lets someone convince another party that a statement is true without revealing any information beyond the statement itself.** The party that submits the proof is called
3. des. 2026
12-03-glossary-thumnail/validator

What is a validator?

**A validator is a participant in a [proof-of-stake](/learn/what-is-proof-of-stake) blockchain that proposes new blocks and votes on other blocks.** It must first [stake](/learn/what-is-staking) the a
3. des. 2026
12-03-glossary-thumnail/unspent-transaction-output-utxo

What is an unspent transaction output (UTXO)?

**An unspent transaction output (UTXO) is an amount of bitcoin (BTC) that a transaction has paid to someone and that has not yet been spent again; each record states the amount and the conditions for
3. des. 2026
what-is-blockchain

What is transactions per second (TPS)?

**Transactions per second (TPS) is a figure that measures how many transactions a [blockchain](/learn/what-is-a-blockchain) can process, or actually processes, each second. It is also called throughpu
3. des. 2026
Se mer