Shepley Capital

DEFI & WEB3

DeFi and Web3 - Cryptopedia by Shepley Capital

What Are Layer 2 Solutions?

One of the most significant limitations of blockchain technology in its base form is scalability. A blockchain that can only process a limited number of transactions per second, charges high fees during periods of congestion, and requires every network participant to validate every transaction is not a foundation on which billions of people can transact daily. This is not a theoretical problem. It is a practical one that has been experienced by every user who has paid $50 in gas fees to execute a simple DeFi swap on Ethereum during a period of peak demand.

Layer 2 solutions are the primary technical response to this scalability challenge. They are protocols built on top of existing blockchains that process transactions off the main chain, dramatically increasing throughput and reducing costs, while inheriting the security guarantees of the underlying blockchain they settle to. Understanding how they work, why they matter, and what their limitations are is increasingly important for anyone participating in the DeFi and Web3 ecosystem.


The Scalability Problem

To understand why Layer 2 solutions exist, it helps to understand the specific problem they’re solving.

Ethereum, the primary blockchain that Layer 2 solutions are built to extend, processes approximately 15 to 30 transactions per second on its base layer. Visa, by comparison, processes tens of thousands of transactions per second at peak capacity. The gap between where blockchain throughput is and where it needs to be to support global adoption is enormous.

The reason Ethereum’s base layer is limited in throughput is fundamental to how blockchains work. Every transaction must be validated by every node in the network. Every validator must process, store, and agree on the same transaction data. This global consensus provides the security and decentralisation that makes blockchain valuable, but it comes at the cost of throughput. You cannot simply add more transactions without also requiring more work from every participant in the network.

The blockchain consensus resource covers how this validation process works in detail. The scalability trilemma, the observation that it is extremely difficult to simultaneously achieve decentralisation, security, and scalability, is the fundamental design challenge that Layer 2 solutions address by moving computation off the main chain while anchoring security to it.

When demand for Ethereum block space exceeds its limited supply, gas fees rise as users bid against each other for inclusion in the next block. During peak demand periods, this has made Ethereum practically unusable for small transactions and pushed DeFi activity toward alternative blockchains with lower fees, including Solana. Layer 2 solutions represent a different approach: preserving Ethereum’s security while dramatically expanding its practical capacity.


What Layer 2 Actually Means

The terminology of layers in blockchain architecture has a specific meaning worth establishing clearly.

Layer 1 refers to the base blockchain itself, the main chain that maintains the canonical record of all transactions and provides the security guarantees through its consensus mechanism. For the purposes of most Layer 2 discussion, Ethereum is the primary Layer 1 being extended, though the concept applies to Bitcoin and other Layer 1 blockchains as well.

Layer 2 refers to a secondary protocol that processes transactions separately from the Layer 1 chain but anchors its security to the Layer 1 through a mechanism that allows the Layer 1 to verify or challenge the Layer 2’s transaction history. The Layer 2 handles the throughput. The Layer 1 provides the security foundation.

The key characteristic that distinguishes a true Layer 2 from simply a different blockchain is that the Layer 2’s security is derived from the Layer 1 rather than from its own independent consensus mechanism. A user on a Layer 2 can, in principle, always fall back to the Layer 1 to settle a dispute or withdraw assets, even if the Layer 2 itself is behaving incorrectly. This is the property that makes Layer 2 solutions genuinely extend Ethereum’s security rather than creating a separate, weaker security model.


Rollups: The Dominant Layer 2 Architecture

Rollups are currently the leading Layer 2 architecture and the primary focus of Ethereum’s scalability roadmap. They work by bundling, or “rolling up,” a large number of transactions into a single batch, processing those transactions off-chain, and then posting a compressed summary of the batch to the Ethereum Layer 1.

The cost savings from rollups are substantial because the gas fee for posting a batch of transactions to Ethereum is shared across all transactions in the batch. Instead of each transaction individually consuming Layer 1 block space, hundreds or thousands of transactions share the cost of a single Layer 1 data posting. The result is transaction fees that are typically 10 to 100 times lower than equivalent Layer 1 transactions, with transaction speeds measured in seconds rather than minutes.

There are two primary types of rollups, distinguished by how they prove the validity of their off-chain transactions to the Layer 1.

Optimistic rollups assume that all transactions are valid by default and post them to the Layer 1 without immediate proof of validity. They include a challenge period, typically seven days, during which any party can submit a fraud proof if they believe a transaction in the batch was invalid. If no valid challenge is submitted during this window, the batch is considered final. The tradeoff of this approach is the withdrawal delay: moving assets from an optimistic rollup back to the Ethereum Layer 1 requires waiting through the challenge period unless a liquidity bridge is used to exit faster at a small cost. Arbitrum and Optimism are the leading optimistic rollup networks.

Zero-knowledge rollups (ZK rollups) generate a cryptographic proof, called a validity proof or ZK proof, that mathematically demonstrates the correctness of every transaction in the batch. This proof is posted to the Ethereum Layer 1 alongside the transaction data summary. Because the validity is proven cryptographically rather than assumed and challenged, ZK rollup withdrawals to Layer 1 can be finalised much faster than optimistic rollup withdrawals. The tradeoff is computational complexity: generating ZK proofs requires significant computation and has historically been challenging to implement for general-purpose smart contract execution. Advances in ZK proof technology have made this increasingly practical. zkSync, StarkNet, and Polygon zkEVM are among the leading ZK rollup networks.


State Channels

State channels are a different Layer 2 approach that is particularly well suited to scenarios involving repeated interactions between a defined set of participants.

A state channel works by opening a channel between two or more parties on the blockchain, locking a defined amount of funds, and then allowing the parties to transact with each other off-chain at unlimited speed and zero cost. The off-chain transactions are simply signed messages exchanged between the parties, updating the balance of the channel. Only the opening and closing of the channel require on-chain transactions. Everything in between is off-chain.

The Bitcoin Lightning Network is the most widely deployed state channel implementation. It enables Bitcoin micropayments with near-instant finality and negligible fees, making use cases like paying for content by the article, tipping creators, or conducting high-frequency small payments practical on Bitcoin for the first time.

State channels are highly efficient for their specific use case but are less flexible than rollups for general-purpose computation because they require pre-defined participants and locked capital.


Sidechains: Related but Distinct

Sidechains are sometimes discussed alongside Layer 2 solutions but are technically a different category. A sidechain is an independent blockchain that runs parallel to a Layer 1 and has a two-way bridge allowing assets to move between them. The critical distinction is that a sidechain has its own consensus mechanism and its own security model, independent of the Layer 1.

This means a sidechain does not inherit Ethereum’s security. If the sidechain’s consensus is compromised, the Layer 1 cannot protect assets on the sidechain. Polygon PoS, often discussed in the same breath as Layer 2 solutions, is technically a sidechain with its own validator set rather than a true Layer 2. This distinction matters for understanding the actual security model of different networks.

True Layer 2 solutions like Arbitrum, Optimism, and zkSync derive their security from Ethereum. Sidechains like Polygon PoS have their own security assumptions that must be evaluated separately.


Why Layer 2 Solutions Matter for DeFi and Web3

The practical significance of Layer 2 solutions for DeFi and Web3 is already visible and growing.

DeFi activity has migrated significantly to Layer 2 networks as gas fees on Ethereum Layer 1 have made small transactions economically unviable. Yield farming, DEX trading, and lending protocol interactions that would cost $30 to $100 in gas fees on Ethereum Layer 1 can be executed for cents on Arbitrum or Optimism. This cost reduction opens DeFi to a broader range of participants and makes smaller position sizes economically viable.

For Web3 applications including gaming, NFT platforms, and social applications, Layer 2 solutions provide the throughput and cost profile needed for genuine mass-market use cases. A blockchain game that requires hundreds of on-chain interactions per session is not viable at Ethereum Layer 1 fees. At Layer 2 fees, it becomes practical.

Total value locked across Layer 2 networks has grown substantially and continues to grow as more DeFi protocols deploy on Layer 2, more users migrate from Layer 1 to take advantage of lower costs, and more infrastructure is built to make the Layer 2 experience seamless.


Risks and Limitations of Layer 2 Solutions

Layer 2 solutions are not without their own risks and limitations, and these are worth understanding clearly before allocating capital to Layer 2 protocols.

Bridge risk. Moving assets between Layer 1 and Layer 2, or between different Layer 2 networks, requires using a bridge. Bridges are among the most frequently exploited components in the DeFi ecosystem, with several high-profile bridge hacks resulting in hundreds of millions of dollars in losses. The smart contract complexity of bridges, combined with the large value they hold in transit, makes them attractive targets. Using only well-audited, battle-tested bridges from reputable protocols reduces but does not eliminate this risk.

Sequencer centralisation. Most current rollup implementations use a centralised sequencer, a single operator that orders and batches transactions before posting them to the Layer 1. If the sequencer is malicious or goes offline, it can censor transactions or cause temporary unavailability. True Layer 2 security guarantees allow users to bypass the sequencer and submit transactions directly to the Layer 1, but this is a complex process. Decentralisation of sequencers is an active area of development for most rollup networks.

Complexity and user experience. Bridging between networks, managing assets across multiple chains, and understanding which network your assets are on adds significant complexity to the user experience. The risk of sending assets on the wrong network, as covered in our how to safely withdraw crypto from an exchange resource, is amplified in a multi-Layer 2 environment where the same address format may be used across multiple networks.

Ecosystem immaturity. While Layer 2 networks are developing rapidly, their ecosystems are still less mature than Ethereum Layer 1. Some protocols are available only on specific Layer 2 networks, liquidity is more fragmented, and the tooling for developers and users is still evolving.


Layer 2 in the Context of the Broader Ecosystem

Layer 2 solutions are not the only approach to blockchain scalability. Solana takes a fundamentally different approach by optimising the Layer 1 itself for high throughput rather than building a Layer 2 ecosystem. Other alternative Layer 1 blockchains have made similar architectural choices.

The tradeoff is a genuine debate within the crypto ecosystem. Optimising Layer 1 for throughput typically requires making compromises on decentralisation or the hardware requirements for running a node. Ethereum’s approach preserves Layer 1 decentralisation and security while scaling through Layer 2, accepting the complexity and ecosystem fragmentation that comes with a multi-layer architecture.

For investors, the growth of Layer 2 ecosystems has investment implications. Layer 2 network tokens, the tokenomics of protocols deploying on Layer 2, and the infrastructure layer connecting Layer 2 networks are all areas where the scalability transition is creating new opportunities and new risks. Applying the how to identify promising crypto projects early and researching altcoins frameworks to Layer 2 ecosystem projects is the appropriate research approach for investors looking to gain exposure to this sector.


Key Takeaways

Layer 2 solutions address the scalability limitations of base layer blockchains by processing transactions off-chain while anchoring security to the Layer 1. Rollups are the dominant Layer 2 architecture, with optimistic rollups and ZK rollups taking different approaches to proving transaction validity. State channels enable high-frequency, low-cost interactions between defined participants. Sidechains are a related but distinct category with their own independent security models. Layer 2 solutions are enabling DeFi at scale by dramatically reducing gas fees and increasing throughput. Bridge risk, sequencer centralisation, and ecosystem complexity are the primary limitations to understand before allocating capital to Layer 2 protocols.

The scalability problem is one of the most important technical challenges in crypto. Layer 2 solutions are the most developed response to that challenge on Ethereum, and their continued development is central to the vision of blockchain technology reaching genuine mass adoption.

For everyday investors who want to understand how Layer 2 solutions affect their DeFi activity, portfolio positioning, and the broader trajectory of the crypto ecosystem, our Runite Tier Membership provides the education and market insights to stay genuinely informed. For serious investors who want personalised guidance on navigating the Layer 2 ecosystem, identifying opportunities, and managing the associated risks within a professionally structured portfolio, our Black Emerald and Obsidian Tier Members receive exactly that. Find out more at shepleycapital.com/membership.

WRITTEN & REVIEWED BY Chris Shepley

UPDATED: MARCH 2026

Choose your next topic from our Cryptopedia​