What Are Rollups in Blockchain?

Learn what rollups are, how optimistic and zero-knowledge rollups work, and why they matter for scaling Ethereum and reducing gas fees in DeFi.

What Are Rollups in Blockchain?

Blockchain networks face a fundamental tension between decentralization, security, and throughput — often called the "blockchain trilemma." As DeFi activity surged on Ethereum, the network's limited transaction capacity drove gas fees to levels that priced out many users. Rollups emerged as the leading solution to this scalability bottleneck, and they now form the backbone of Ethereum's long-term scaling roadmap.

A rollup is a type of Layer 2 scaling solution that moves transaction execution off the main chain while still posting transaction data back to Layer 1. This design lets rollups inherit the security guarantees of the base chain — a critical property that distinguishes them from alternative scaling approaches like sidechains, which maintain their own independent validator sets.

How Rollups Work

At a high level, every rollup follows the same three-step pattern:

  1. Off-chain execution — Users submit transactions to the rollup's sequencer or operator, which executes them in an off-chain environment.
  2. Data compression — The rollup batches many transactions together and compresses the resulting data.
  3. On-chain posting — The compressed batch is posted to the Layer 1 chain (e.g., Ethereum) as calldata or, more recently, as blob data after the Dencun upgrade.

Because the raw transaction data is available on Layer 1, anyone can reconstruct the rollup's state independently. This property — called data availability — is what allows rollups to remain trustless.

The Role of the Sequencer

Most rollups today operate with a centralized sequencer that orders transactions and produces batches. While this introduces a degree of centralization, the sequencer cannot steal funds or produce invalid state transitions (thanks to the proof systems described below). Many rollup teams are actively working on decentralized sequencer designs to eliminate this single point of dependency.

Optimistic Rollups

Optimistic rollups take an "innocent until proven guilty" approach. They assume that every batch of transactions posted to Layer 1 is valid. If a batch contains an invalid state transition, any observer can submit a fraud proof during a predefined challenge window — typically seven days.

How Fraud Proofs Work

When a fraud proof is submitted, the Layer 1 contract re-executes the disputed transaction to determine the correct outcome. If the original batch is found to be invalid, it is reverted and the malicious operator's bond is slashed. This mechanism requires at least one honest verifier to be watching the chain.

Key Optimistic Rollup Networks

  • Arbitrum — The largest rollup by total value locked, featuring the Nitro execution environment and Stylus for multi-language smart contract support.
  • Optimism (OP Mainnet) — Powers the OP Stack, a modular framework used by Base, Zora, and other chains in the Superchain ecosystem.
  • Base — Built on the OP Stack by Coinbase, designed for consumer-friendly DeFi applications.

Trade-offs

The main drawback of optimistic rollups is the withdrawal delay. Because fraud proofs require a challenge window, withdrawing funds back to Layer 1 natively takes around seven days. Third-party liquidity bridges can circumvent this delay, but they introduce additional trust assumptions or fees.

Zero-Knowledge (ZK) Rollups

ZK rollups take the opposite approach: they generate a cryptographic validity proof (often a zk-SNARK or zk-STARK) for every batch of transactions. This proof mathematically guarantees that every transaction in the batch was executed correctly. The Layer 1 smart contract verifies the proof on-chain, and if it checks out, the new state is accepted.

How Validity Proofs Work

The rollup operator runs a prover — a computationally intensive process — that generates a succinct proof attesting to the correctness of all state transitions in a batch. This proof can be verified on-chain in constant time, regardless of how many transactions the batch contains. The key innovation is that verification is orders of magnitude cheaper than re-execution.

Key ZK Rollup Networks

  • zkSync Era — Uses zk-SNARKs and supports full EVM compatibility through a custom compiler.
  • StarkNet — Built on zk-STARKs, which are quantum-resistant and do not require a trusted setup.
  • Polygon zkEVM — Aims for bytecode-level EVM equivalence using zero-knowledge proofs.
  • Scroll — A community-driven zkEVM rollup focused on Ethereum equivalence.

Trade-offs

ZK rollups offer faster finality (no seven-day wait) and stronger security guarantees, but proof generation is computationally expensive. Achieving full EVM compatibility inside a ZK circuit is also technically challenging, though recent advances have made it increasingly practical.

Rollups and DeFi: Why They Matter

For DeFi users — particularly those borrowing against Bitcoin or other crypto assets — rollups deliver three concrete benefits:

1. Lower Transaction Costs

Borrowing on Layer 1 Ethereum can cost anywhere from $20 to $200+ per transaction during congestion. On a rollup, the same operations often cost pennies. For users managing collateral positions that require multiple transactions (approve, deposit, borrow, repay), the savings compound quickly.

2. Faster Confirmation Times

Rollup sequencers typically provide soft confirmations in under two seconds, compared to Ethereum's 12-second block time. This creates a smoother user experience when interacting with lending protocols.

3. Access to More Protocols

Many DeFi lending protocols — including those aggregated by Borrow — deploy across multiple rollup networks. This means borrowers can compare rates not just across protocols but across chains, finding the optimal combination of interest rate, collateral requirements, and transaction cost.

Rollups vs. Other Scaling Solutions

Rollups vs. Sidechains

Sidechains (like Polygon PoS) run their own consensus mechanism, which means their security is independent of the Layer 1 chain. Rollups post data back to Layer 1 and inherit its security, making them fundamentally more secure for high-value DeFi operations.

Rollups vs. State Channels

State channels (like the Lightning Network on Bitcoin) allow two parties to transact off-chain and only settle the final state on-chain. They are highly efficient for repeated bilateral interactions but do not support the complex smart contract logic that DeFi protocols require.

Rollups vs. Validiums

Validiums are similar to ZK rollups but store data off-chain rather than on Layer 1. This further reduces costs but weakens the data availability guarantee, introducing a trust assumption about the off-chain data storage committee.

The Future of Rollups

EIP-4844 and Proto-Danksharding

Ethereum's Dencun upgrade introduced "blob" transactions, which provide a cheaper way for rollups to post data to Layer 1. This has already reduced rollup fees by 10-100x and represents the first step toward full danksharding, which will further expand data capacity.

Based Rollups

A newer concept where the Layer 1 validators themselves serve as the sequencer for the rollup. This eliminates the centralized sequencer concern and inherits Ethereum's full liveness and censorship resistance guarantees.

Cross-Rollup Interoperability

As more protocols deploy across multiple rollups, seamless cross-rollup asset transfers become critical. Shared sequencing, interoperability protocols, and intent-based bridging are active areas of research and development.

Rollups and Bitcoin-Backed Borrowing

The expansion of DeFi lending onto rollup networks has direct implications for Bitcoin holders looking to access liquidity without selling. Wrapped Bitcoin (wBTC, cbBTC, BTCB) and native Bitcoin bridging solutions make it possible to use Bitcoin as collateral on rollup-based lending protocols.

Platforms like Borrow aggregate these opportunities, letting users compare borrowing rates across Layer 2 networks and Layer 1 protocols from a single interface. The result is a more efficient market where borrowers can access the best terms regardless of which chain a protocol operates on.

Key Takeaways

  • Rollups are Layer 2 solutions that execute transactions off-chain and post data to Layer 1 for security.
  • Optimistic rollups assume validity and use fraud proofs; ZK rollups generate cryptographic validity proofs.
  • Both types dramatically reduce gas costs and increase throughput, making DeFi more accessible.
  • Rollup ecosystems now host major lending protocols, expanding options for Bitcoin-backed borrowing.
  • Ethereum's roadmap is explicitly "rollup-centric," meaning rollups will be the primary way users interact with the network going forward.

Understanding rollups is essential for any serious DeFi participant. As the technology matures and adoption grows, the ability to navigate multiple rollup ecosystems — and compare opportunities across them — will be a significant advantage. Tools like Borrow simplify this by aggregating rates and protocols across chains, so you can focus on finding the best terms for your Bitcoin-backed loans.

Common Questions

A rollup is a Layer 2 scaling solution that executes transactions off the main blockchain (off-chain), then posts compressed transaction data back to Layer 1 for finality. This allows rollups to inherit the security of the base chain while dramatically increasing throughput and reducing per-transaction costs.

Related Questions