What is layer 2 on Ethereum?

Guides 2025-09-03 16:33

Layer 2 is an umbrella term to describe solutions that build on top of Ethereum mainnet (layer 1) to improve the scalability of the Ethereum network.

What is layer 2 on Ethereum?

Why are layer-2 solutions needed on Ethereuem?

Ethereum is the second most recognized cryptocurrency after Bitcoin. It has helped create a decentralized financial system, and much of the innovation in the crypto space still revolves around it. Unfortunately, Ethereum is a victim of its own success. The Ethereum mainnet, also called ‘layer 1,’ regularly processes well over 1 million transactions a day, but demand is much greater than capacity. This causes the network to become congested, which in turn pushes gas prices to exorbitant levels. As the average cost of transacting on layer 1 increases, more and more people are priced out of using decentralized apps like decentralized exchanges or NFT marketplaces.

Read more: What is ETH gas and how do fees work in Ethereum?

What are the types of layer-2 solutions on Ethereum?

There are a number of layer 2 solutions on Ethereum. We are going to take a brief look at how each of these solutions approach bringing scalability to Ethereum.

Channels

Channels are analogous to how the Lightning Network works for Bitcoin. Essentially, channels allow a person to make an unlimited amount of transactions with another person, but only the first and last transaction are submitted to the blockchain. Since all other transactions are handled off chain, they are incredibly fast with very low transaction fees.

The downsides are similar to Bitcoin’s Lightning Network: You must have a connection to the person you wish to transact with, funds must be allocated for a channel and cannot be withdrawn for the duration of the channel, and there are many potential security vulnerabilities associated with transacting off-chain.

Raiden is often called Ethereum’s Lightning Network.

Plasma

Plasma is a framework that allows for the creation of child chains that use the Ethereum main chain as a layer of trust and arbitration. Child chains provide fast and low cost transactions, but they only support a limited number of transaction types, such as basic token transfers and swaps. General computation is not supported. Another drawback is that withdrawals from the child chain back to the Ethereum mainnet are subject to long wait times, and someone must watch the network to ensure funds are secured. Plasma is a relatively mature technology, so there are several prominent deployed projects.

The most widely used project implementing the Plasma framework is Polygon (MATIC).

Independent sidechains

What constitutes a sidechain can be a hotly debated topic in the crypto community. It could be argued that all layer-2 solutions are sidechains, but for this section, we are talking specifically about two independent blockchains. They connect through a 2-way peg and both chains are compatible with the Ethereum Virtual Machine (EVM).

The technology behind independent sidechains is well understood. Due to this, many projects have moved to independent sidechains as a quick and pragmatic way to improve transaction speed and reduce transaction costs. Independent sidechains are responsible for their own security, which means sidechains are inevitably less secure than Ethereum, because they’re smaller. Also, a smaller number of miners/validators on a sidechain means it’s more feasible for them to coordinate and steal assets.

xDAI is a prominent example of an Ethereum independent sidechain. Also, the popular game Axie Infinity is a good example of a layer-1 project that pivoted to an independent sidechain for fast and cost effective transactions.

Rollups

Rollups work by processing transactions on layer 2, but sending data to layer 1. This allows transactions to be much faster and cheaper, but still benefit from the security of the Ethereum mainnet.

There are two types of rollups: optimistic rollups and zero knowledge (ZK) rollups.

  • Optimistic rollups: Layer 1 assumes transactions are valid by default, and the validity of the transaction is computed only when challenged.
  • ZK rollups: Proof of the validity of transactions is computed on layer 2 and submitted to layer 1.

The biggest differentiator between Optimistic and ZK rollups is that Optimistic rollups use standard cryptographic technology. There already is a live public network that implements Optimistic rollups. Optimistic rollups are EVM-compatible, so anything possible on layer 1 is possible on layer 2. The biggest drawback is that due to a long challenge period, there are long wait times to move assets between layer 1 and 2 (seven days or more). The previously mentioned Polygon (MATIC) currently utilizes Optimistic rollups.

ZK rollups use a new kind of cryptographic technology. There are no live public layer-2 solutions using ZK rollups (as of Q3 2021), nor is there likely to be for some time. Also, the computation required to do zero knowledge proofs is very high, though it's dropping as the technology matures. Finally, some implementations of ZK rollups are not EVM compatible. Still, ZK rollups have all of the benefits of Optimistic rollups plus there is no delay moving assets between layer 1 and 2.

In time it seems that ZK rollups will replace Optimistic rollups as the preferred rollup technology. Indeed, Polygon (MATIC), as an example, has ZK technology on their roadmap.

Layer-2 ecosystem

All of these solutions are not mutually exclusive. Their strengths and weaknesses lend themselves to particular applications or user needs. As you may have noticed with Polygon, it uses Plasma and Optimistic rollups. Polygon also uses Proof of Stake, which enables faster and cheaper transactions than Proof of Work.

Layer-2 solutions are not the only avenues being pursued to increase the scalability of Ethereum. There is also ETH 2.0 and sharding, which potentially will bring huge gains in speed and reduced cost, both of which can be added to layer 1, layer 2, or both.

Share to:

This content is for informational purposes only and does not constitute investment advice.

Curated Series

SuperEx Popular Science Articles Column

SuperEx Popular Science Articles Column

This collection features informative articles about SuperEx, aiming to simplify complex cryptocurrency concepts for a wider audience. It covers the basics of trading, blockchain technology, and the features of the SuperEx platform. Through easy-to-understand content, it helps users navigate the world of digital assets with confidence and clarity.

How do beginners trade options?How does option trading work?

How do beginners trade options?How does option trading work?

This special feature introduces the fundamentals of options trading for beginners, explaining how options work, their main types, and the mechanics behind trading them. It also explores key strategies, potential risks, and practical tips, helping readers build a clear foundation to approach the options market with confidence.

What are the risks of investing in cryptocurrency?

What are the risks of investing in cryptocurrency?

This special feature covers the risks of investing in cryptocurrency, explaining common challenges such as market volatility, security vulnerabilities, regulatory uncertainties, and potential scams. It also provides analysis of risk management strategies and mitigation techniques, helping readers gain a clear understanding of how to navigate the crypto market safely.

Bitcoin historical price data and trends

Bitcoin historical price data and trends

This special feature gathers multiple articles on Bitcoin’s historical price data, analyzing past trends, market cycles, and key events that shaped its value. It also explores factors influencing price movements, providing readers with insights into Bitcoin’s long-term performance and market patterns.

Detailed Illustrated Guide to Contract Trading

Detailed Illustrated Guide to Contract Trading

This collection, "Detailed Illustrated Guide to Contract Trading," explains the fundamentals of contract trading, including futures and margin trading. It uses clear illustrations to simplify key concepts, risk management strategies, and order types, making it accessible for both beginners and experienced traders.