Layer 2 scaling solutions (L2, a second layer on top of the base blockchain) answer a long-standing pain point of Layer 1 networks (L1, the base blockchain), especially Ethereum: high gas fees and congestion during peak hours. The idea is simple at its core. Transactions are executed not on the main chain but off to the side, then bundled and returned to L1 in a compressed form for finalization. The cost of data availability and the security of the base network is then split across many L2 operations, so the price of a single transaction for the user falls by a large multiple. Early L2 concepts took shape around 2018, and real development and mass adoption accelerated from 2020 onward.
MECHANICS
The fee reduction comes from how L2 processes and publishes data. The main tool here is rollups, and they come in two families: Optimistic Rollups and ZK-Rollups. Either type collects hundreds or thousands of L2 transactions into a single batch, then publishes that batch to L1, often as compressed calldata (data attached to a transaction). Instead of each operation paying for L1 security individually, the entire batch pays once and the cost is distributed across all the transactions inside.
The next leap came with the Dencun upgrade, which introduced EIP-4844 (proto-danksharding). It created a dedicated data type for L2 called blobs, with its own cheaper storage space on L1 that does not compete with standard calldata. Previously, publishing large volumes of data via calldata was expensive; now the main L2 data flow goes through blobs and data-availability costs have dropped noticeably.
KEY COMPONENTS
For a rollup to work and remain secure, several roles are involved. Here are the key parts and what each is responsible for:
- Sequencer: orders and batches L2 transactions before sending the batch to L1.
- Prover (for ZK-Rollups): generates cryptographic proofs (ZK-SNARKs or ZK-STARKs) that confirm the validity of L2 transactions.
- Data Availability Layer: guarantees that transaction data is accessible to verifiers, a critical security element of the rollup.
- Bridges: enable the secure transfer of assets between L1 and L2.
- EIP-4844 Blobs: the new data type introduced in the Dencun upgrade, created specifically for L2 and providing cheaper data storage.
- Calldata: the standard method for publishing L2 data to L1 before EIP-4844, now less cost-effective for large volumes.
APPLICATIONS
Cheaper transactions opened the door to a new wave of decentralized applications (dApps) that would have been economically unviable on L1. DeFi protocols on L2, such as Uniswap V3 on Arbitrum and Optimism, execute trades for a fraction of L1 costs. NFT marketplaces benefit too: users mint and trade digital assets with minimal fees, and the barrier to entry drops noticeably. Gaming applications that need high throughput are increasingly moving to L2 to deliver a smooth user experience without prohibitive gas costs.
To make the savings concrete, here is a comparison of two paths for the same operation:
| Parameter | Swap directly on L1 | Same swap on an L2 rollup |
|---|---|---|
| How security is paid for | each operation pays for L1 individually | the batch cost is split across all transactions inside |
| Where data is stored | calldata on the main chain | blobs (after EIP-4844), cheaper |
| User fee | high during peak hours | a fraction of the L1 cost |
There is no fictional trade with an entry and stop here because the topic is technology, not a trading setup. But the logic is the same as in trading: you pay for exactly what you use, and fixed costs are spread across volume.
TRADE-OFFS
Cheap fees are not free, and L2 comes with its own trade-offs. Optimistic Rollups assume transactions are valid by default and maintain a challenge period during which a fraud proof can be submitted. This makes withdrawing funds back to L1 take longer. ZK-Rollups, by contrast, finalize faster thanks to validity proofs, but generating those proofs is computationally heavy and was harder to develop from the start. A separate and still open problem is the decentralization of the sequencer role: on many L2s it remains in a single set of hands, which affects censorship resistance and overall network reliability.