Free 30-min Web3 Consultation
Book Now
Smart Contract Security Audits
Learn More
Custom DeFi Protocol Development
Explore
Full-Stack Web3 dApp Development
View Services
Free 30-min Web3 Consultation
Book Now
Smart Contract Security Audits
Learn More
Custom DeFi Protocol Development
Explore
Full-Stack Web3 dApp Development
View Services
Free 30-min Web3 Consultation
Book Now
Smart Contract Security Audits
Learn More
Custom DeFi Protocol Development
Explore
Full-Stack Web3 dApp Development
View Services
Free 30-min Web3 Consultation
Book Now
Smart Contract Security Audits
Learn More
Custom DeFi Protocol Development
Explore
Full-Stack Web3 dApp Development
View Services
LABS
Guides

How to Understand Rollup Infrastructure Basics

A technical guide to rollup architecture, components, and interaction patterns for developers and researchers.
Chainscore © 2026
introduction
SCALING BLOCKCHAIN

Introduction to Rollup Infrastructure

Rollups are the leading Layer 2 scaling solution, executing transactions off-chain and posting compressed data on-chain. This guide explains the core architecture and trade-offs.

A rollup is a secondary blockchain that inherits the security of a primary Layer 1 (L1) like Ethereum. It executes transactions outside the L1, bundles or "rolls up" hundreds of them into a single batch, and posts a cryptographic proof of the batch's validity to the L1. This approach drastically reduces the data load and computational cost on the main chain, enabling higher throughput (often 100-2000 TPS) and lower transaction fees for users while maintaining strong security guarantees.

The two primary rollup designs are Optimistic Rollups and Zero-Knowledge (ZK) Rollups. Optimistic Rollups, used by Arbitrum and Optimism, assume transactions are valid by default and only run computation via a fraud proof if a challenge is submitted. This offers EVM compatibility but has a 7-day withdrawal delay. ZK-Rollups, like zkSync Era and Starknet, generate a cryptographic validity proof (a ZK-SNARK or STARK) for every batch, providing instant finality but historically faced challenges with general-purpose computation.

All rollups rely on a core component called a sequencer. This node orders transactions, produces blocks, and submits data to the L1. Most current rollups use a single, permissioned sequencer operated by the team for efficiency, which introduces a degree of centralization. The critical data posted to the L1 is the transaction data or calldata. Ensuring this data is available is paramount; if it's withheld, users cannot reconstruct the rollup state. Ethereum's EIP-4844 (proto-danksharding) introduces blobs to provide cheap, temporary data storage specifically for this purpose.

From a developer's perspective, building on a rollup is similar to building on Ethereum. You write Solidity or Vyper smart contracts and use familiar tools like Hardhat or Foundry. The key differences are the network configuration (RPC endpoint), lower gas costs, and sometimes custom precompiles or opcodes. For example, you can deploy a contract on Arbitrum Sepolia using the same contract code but point your deployment script to the Arbitrum RPC.

The security model hinges on the L1. In Optimistic Rollups, any user can submit a fraud proof if the sequencer acts maliciously, though running a fraud prover node is resource-intensive. In ZK-Rollups, the cryptographic proof is verified on-chain by a smart contract; invalid proofs are rejected by the L1 verifier. The escape hatch or force transaction mechanism allows users to submit transactions directly to the L1 contract if the sequencer censors them, ensuring permissionless access.

Choosing a rollup involves evaluating trade-offs: Optimistic Rollups excel in general EVM compatibility and mature tooling, while ZK-Rollups offer superior finality and potential lower fees. The ecosystem is evolving towards ZK Rollup dominance for scalability and volition models, where users choose data storage location. Understanding this infrastructure is essential for building scalable, cost-effective dApps.

prerequisites
FOUNDATIONAL CONCEPTS

Prerequisites for Understanding Rollups

Before diving into rollup architecture, you need a solid grasp of the underlying blockchain concepts they optimize. This guide covers the essential knowledge required to understand how rollups scale Ethereum.

Rollups are a Layer 2 scaling solution that execute transactions off-chain while posting compressed data to a Layer 1 (L1) blockchain like Ethereum for security. To understand this, you must first be comfortable with core L1 concepts. This includes the structure of a blockchain block, how transactions are validated via consensus mechanisms (Proof-of-Work or Proof-of-Stake), and the role of gas fees in compensating network validators. High gas costs on congested L1s are the primary problem rollups aim to solve by moving computation off-chain.

A critical prerequisite is understanding smart contracts. Rollups rely on a core set of contracts deployed on the L1, often called the rollup contract or verifier contract. This contract holds the rollup's funds and state commitments, and it's the ultimate arbiter of correctness. You should know how to interact with contracts, read basic Solidity or Vyper code to understand these commitments, and be familiar with concepts like cryptographic hashes (e.g., SHA-256, Keccak256) which are used to create succinct proofs of off-chain state.

You must also grasp the concept of cryptographic proof systems, which differentiate the two main rollup types. Optimistic Rollups (like Arbitrum and Optimism) use fraud proofs. Here, you need to understand the concept of a challenge period where anyone can dispute an invalid state transition. ZK-Rollups (like zkSync and StarkNet) use validity proofs (ZK-SNARKs or ZK-STARKs). For these, a basic understanding of zero-knowledge cryptography—where a prover can convince a verifier of a statement's truth without revealing the statement itself—is essential.

Finally, familiarity with data availability is non-negotiable. Rollups post transaction data to the L1 so anyone can reconstruct the chain's state. The cost and security of this data posting is a major design consideration. You should understand the difference between posting full transaction data (as in most rollups today) versus only state differences or proofs, and how emerging solutions like EIP-4844 (proto-danksharding) with blob transactions are designed to reduce this cost significantly for rollups.

key-concepts-text
CORE ROLLUP CONCEPTS

How to Understand Rollup Infrastructure Basics

A technical breakdown of the core components that make up a modern rollup, from sequencers to data availability layers.

A rollup is a Layer 2 scaling solution that executes transactions outside the main Ethereum chain (Layer 1) but posts transaction data back to it. This architecture provides security derived from Ethereum while dramatically increasing throughput and reducing costs. The core principle is execution off-chain, data on-chain. All transactions are processed and their results are computed by a separate network of nodes. The critical data needed to reconstruct the chain's state—or at least to verify its correctness—is then published to the underlying Layer 1. This data availability guarantee is what differentiates secure rollups from mere sidechains.

The infrastructure of a rollup is defined by several key components. The sequencer is the primary node that receives user transactions, orders them into a block, executes them, and generates a new state root. It then submits a compressed batch of this data to the Layer 1. The verifier (or prover) is a separate entity that validates the sequencer's work. In Optimistic Rollups, verifiers challenge invalid state transitions during a dispute window. In ZK-Rollups, a cryptographic zero-knowledge proof (like a zk-SNARK or zk-STARK) is generated for every batch, which the Layer 1 contract verifies instantly.

The method of publishing data to Layer 1 is a major differentiator. Ethereum calldata has been the traditional, secure data availability layer. With EIP-4844 (Proto-Danksharding), rollups can now use cheaper blobs for this purpose. The bridge contract on Layer 1 is the canonical source of truth; it holds deposited funds, verifies proofs or fraud challenges, and allows users to withdraw back to L1. Finally, a network of RPC nodes provides the interface for users and applications to query the rollup's state and submit transactions, similar to an Ethereum node.

Understanding the data flow is crucial. 1. A user signs a transaction and sends it to a rollup RPC node. 2. The sequencer picks it up, orders it, and updates its local state. 3. Periodically, the sequencer compresses a batch of transactions and publishes the data to L1 (via calldata or a blob). 4. For a ZK-Rollup, it also submits a validity proof to the bridge contract. For an Optimistic Rollup, it submits a state root assertion. 5. The bridge contract verifies the proof or waits for the challenge period. 6. Once verified, the new state root is finalized, and the rollup's state is considered secure.

When evaluating a rollup, inspect its infrastructure choices. Is it using a centralized sequencer, a decentralized sequencer set (like Espresso or Astria), or a shared sequencing layer? What is its data availability solution—Ethereum, a modular DA layer like Celestia or EigenDA, or a validium? How does it handle upgrades and governance? These technical decisions directly impact the rollup's security model, decentralization, performance, and cost. For developers, this determines the reliability and trust assumptions of the chain they are building on.

infrastructure-components
ROLLUP BASICS

Key Infrastructure Components

Rollups execute transactions off-chain and post data to a base layer (L1). Understanding the core components is essential for developers building or interacting with these systems.

CORE ARCHITECTURE

Optimistic vs. ZK Rollup Comparison

Key technical and economic differences between the two dominant rollup security models.

FeatureOptimistic RollupsZK Rollups

Security Model

Fraud proofs

Validity proofs (ZK-SNARKs/STARKs)

Withdrawal Delay

~7 days (challenge period)

< 1 hour

On-Chain Data Cost

Higher (posts full transaction data)

Lower (posts succinct proof)

Computational Overhead

Lower (proving is optional)

Higher (requires proof generation)

Generalized EVM Support

Time to Finality

Minutes (soft confirmation)

Minutes (hard finality)

Primary Example

Arbitrum One, Optimism

zkSync Era, Starknet

data-lifecycle
INFRASTRUCTURE

The Rollup Data Lifecycle

Rollups process user transactions off-chain and post data back to a base layer. This lifecycle is the core of their security and scalability model.

A rollup is a scaling solution that executes transactions outside the main Ethereum chain (Layer 1) but posts transaction data back to it. This lifecycle—from user action to final settlement—defines a rollup's security and performance. The key phases are: transaction submission, sequencing/execution, data publication, and state verification. Understanding this flow is essential for developers building on rollups and users assessing their security guarantees. Different rollup designs, like Optimistic and ZK Rollups, implement these phases with distinct mechanisms for proving correctness.

The lifecycle begins with transaction submission. Users sign and send transactions to a rollup node, often via a dedicated RPC endpoint. These transactions are typically batched with others to amortize costs. For example, sending an ERC-20 transfer on Arbitrum or Optimism involves interacting with a sequencer node that accepts the transaction and provides near-instant confirmation, though finality depends on later phases. The sequencer orders transactions, creating a tentative new state root for the rollup's state tree, which represents user balances and contract storage.

Next comes data publication, the most critical link to Layer 1 security. The rollup's operator compresses the transaction data and posts it as calldata to a smart contract on Ethereum L1. This step, often called publishing a batch or rollup block, ensures data availability. Even if the rollup operator vanishes, anyone can reconstruct the chain's state from this publicly available data. Protocols like EigenDA or Celestia offer alternative data availability layers for modular rollups. The cost of this L1 data posting is the primary fee users pay, minimized through compression techniques.

The final phase is state verification, where the new state root is validated. Optimistic Rollups like Base and Arbitrum assume state transitions are valid but allow a challenge period (usually 7 days) for anyone to submit fraud proofs. ZK Rollups like zkSync and StarkNet publish a validity proof (ZK-SNARK or STARK) with each batch, which the L1 contract verifies instantly. Once the state root is confirmed on L1, the transactions achieve full finality. This lifecycle decouples low-cost, fast execution from secure, decentralized settlement, enabling scalable dApps.

developer-interaction
INFRASTRUCTURE BASICS

How Developers Interact with Rollups

Rollups scale Ethereum by executing transactions off-chain and posting compressed data on-chain. Understanding the core components is the first step to building on them.

05

State & Storage

Understanding how state is managed is key for smart contract development. Rollups use the same EVM or custom VMs, but storage costs are different.

  • State Growth: Data written to L2 state is eventually compressed and posted to L1.
  • Storage Refunds: Some rollups (Arbitrum) implement EIP-3855, reducing costs for clearing storage.
  • State Proofs: Tools like Lagrange provide proofs of L2 state for use on other chains.
06

Key Development Tools

The toolchain is similar to Ethereum but with rollup-specific elements.

  • Frameworks: Foundry and Hardhat work with local rollup testnets.
  • SDKs: Rollup-specific SDKs (e.g., Starknet.js, viem/chains) handle custom transaction types.
  • Block Explorers: Arbiscan, Optimistic Etherscan for viewing transactions and contracts.
  • Faucets: Obtain testnet ETH from official rollup ecosystem portals.
security-model
LAYER 2 FOUNDATIONS

Understanding Rollup Infrastructure Basics

Rollups are the dominant scaling solution for Ethereum, executing transactions off-chain and posting compressed data on-chain. This guide explains the core components that make them work.

A rollup is a Layer 2 blockchain that processes transactions outside the main Ethereum network (Layer 1). It derives its security from Ethereum by periodically posting a cryptographic summary of its transactions—a state root and compressed transaction data—to the main chain. This data availability is crucial: if the data is available, anyone can reconstruct the rollup's state and verify its correctness. The two primary models, Optimistic Rollups and ZK-Rollups, differ in how they prove the validity of this state transition to the base layer.

The core infrastructure of any rollup consists of several key components. The Sequencer is the primary node that receives, orders, and executes transactions, batching them into blocks. It then submits these batches to the Layer 1 as calldata. A separate Prover component (or Verifier in Optimistic systems) is responsible for generating validity proofs or fraud proofs. All rollups rely on a set of on-chain smart contracts deployed on Ethereum, which typically include a main bridge contract for deposits/withdrawals and a contract to store the posted data and state commitments.

Data availability is the non-negotiable security requirement. Whether via calldata (as used by Arbitrum and Optimism) or dedicated blob storage (via EIP-4844), this data must be accessible on Ethereum. If it's not, users cannot challenge invalid state or exit the rollup. The settlement layer (Ethereum) acts as the final arbiter, holding the rollup's assets and enforcing its rules through its contracts. This creates a clear hierarchy: execution happens on L2, but security and data are anchored on L1.

Understanding the sequencer's role is critical for decentralization and liveness. Most rollups today use a single, permissioned sequencer for efficiency, creating a centralization point. The roadmap for protocols like Arbitrum and Optimism involves decentralizing this function through permissionless sequencer sets or based sequencing. A decentralized sequencer network prevents censorship and ensures the chain progresses even if one actor fails, moving rollups closer to the security model of Ethereum itself.

Finally, the bridge contract is the user's gateway. To interact with a rollup, you lock assets in this L1 contract, which mints a corresponding representation on L2. To withdraw, you submit a request on L2, which, after a challenge period (Optimistic) or immediate proof verification (ZK), allows you to claim the assets back on L1. This mechanism, secured by the underlying data availability, ensures that user funds are always recoverable even if the rollup's operators disappear.

DEVELOPER QUESTIONS

Rollup Infrastructure FAQ

Answers to common technical questions about rollup architecture, data availability, and development workflows.

The core difference lies in their security model and proof mechanism for verifying state transitions.

Optimistic Rollups assume transactions are valid by default (optimistically) and only run computation to generate a fraud proof if a transaction is challenged during a 7-day dispute window. This makes them faster to confirm initially but introduces a long withdrawal delay to L1. Examples include Arbitrum and Optimism.

ZK-Rollups generate a cryptographic validity proof (a zero-knowledge proof, like a zk-SNARK or zk-STARK) for every batch of transactions. This proof is verified on the L1 instantly, providing immediate finality with no withdrawal delays. The trade-off is higher computational overhead for proof generation. Examples include zkSync Era, Starknet, and Polygon zkEVM.

conclusion
KEY TAKEAWAYS

Conclusion and Next Steps

This guide has covered the core architectural components that define modern rollup infrastructure. Here's a summary of the essential concepts and where to go from here.

You should now understand the fundamental trade-offs between Optimistic Rollups and ZK-Rollups. Optimistic systems like Arbitrum and Optimism prioritize developer compatibility and lower computational overhead, relying on a fraud-proof challenge period for security. ZK-Rollups like zkSync Era and StarkNet use validity proofs for instant finality, offering stronger security guarantees at the cost of more complex proof generation. The choice between them depends on your application's needs for cost, speed, and security.

The next step is to interact with a live rollup. Start by bridging a small amount of ETH or USDC from Ethereum mainnet to a rollup using its official bridge (e.g., Arbitrum Bridge). Then, deploy a simple smart contract. Most rollups support the Ethereum Virtual Machine (EVM), so you can use familiar tools like Hardhat or Foundry. Pay attention to differences in gas estimation, block times, and data availability costs compared to Layer 1.

To deepen your knowledge, explore the data availability layer. Research how rollups like Arbitrum Nova use Ethereum as a data availability committee (DAC) or how Celestia and EigenDA provide specialized data availability layers. Understanding where and how transaction data is stored is critical for assessing a rollup's security model and long-term decentralization. Follow the development of EIP-4844 (proto-danksharding), which will significantly reduce data publishing costs for rollups on Ethereum.

Finally, stay updated on the evolving landscape. Monitor the progress of Layer 3 networks, which are rollups built on top of existing rollups, and new proof systems like STARKs and recursive SNARKs. Engage with developer documentation from leading projects and experiment in testnets. The infrastructure is rapidly advancing, and hands-on experience is the best way to build expertise in this foundational scaling technology.

How to Understand Rollup Infrastructure Basics for Developers | ChainScore Guides