QosheleqRU
Article

Layer 2 networks: Arbitrum, Optimism and Base explained simply

Layer 2 networks process transactions and write only a compressed summary to Ethereum. Why that is cheaper, how rollups differ and the main risk: bridges.

3 min read

Ethereum can process only a limited number of transactions. When more people want in, fees rise, and swapping tokens worth a couple of thousand tenge (₸, Kazakhstan's currency) can cost more than the trade itself. Layer 2 networks (L2) solve this problem: they process transactions on their own side and send a compressed summary to Ethereum.

How a rollup works

Most major L2s are built as rollups (from the English "roll up"):

  1. Users send transactions to the layer 2 network.
  2. A special node, the sequencer, gathers hundreds of transactions into a batch.
  3. The batch is written to Ethereum in compressed form.

The expensive space in an Ethereum block is shared by hundreds of users, so each of them pays much less. At the same time, the transaction data lands on the main network, and anyone can check it.

In March 2024 the Dencun upgrade added "blobs" to Ethereum: a separate cheap space for rollup data, which is kept for about 18 days. After that, L2 fees dropped noticeably.

Optimistic and ZK rollups

  • Optimistic rollups (Arbitrum, Optimism, Base) treat transactions as honest by default. If someone spots fraud, they can challenge a batch. That is why a withdrawal to Ethereum through the official bridge has to wait out a challenge window: on OP Mainnet it is 7 days.
  • ZK rollups (zkSync, Starknet, Linea) attach a mathematical proof of correctness to every batch. There is no need to wait for challenges, but computing the proofs is complex and expensive.

Who is who

NetworkDeveloperLaunch
Arbitrum OneOffchain LabsAugust 2021
OP Mainnetthe Optimism team2021
BaseCoinbase, built on OP Stack technologyAugust 2023

Gas on all three is paid in ETH. The ARB and OP tokens are for community voting; you don't need them to pay fees.

The main risk: bridges

To get money onto an L2, you send it through a bridge: a smart contract that locks coins on one network and issues a copy of them on another. Huge sums pile up in bridges, so they are attacked often.

  • In February 2022, 120,000 wETH, about $325 million, was stolen from the Wormhole bridge.
  • In March 2022, more than $600 million was drained from the Ronin bridge used by the game Axie Infinity. US authorities linked the attack to the North Korean group Lazarus.

The L2s themselves carry risks too. On many networks there is still a single sequencer run by the project team, and the team often has the right to upgrade the contracts. How much a network depends on people rather than on code is shown by the ETHBEAT site (formerly L2BEAT): it sorts rollups into stages from 0 to 2.

How to lower the risk:

  • use the network's official bridge or a withdrawal from a large exchange that supports the network you need;
  • check the address of the bridge website: fake copies are popular with scammers;
  • before a large transfer, send a small test amount.

A layer 2 network saves on fees but adds middlemen: the bridge, the sequencer and a team that can upgrade the code.

Wherever your coins are, the main protection stays the same: the seed phrase and a cold wallet.

This article is for general information and is not investment advice. Cryptocurrency can fall sharply in price, and money put into it is not insured.

Comments no comments yet

Readers signed in with Telegram can comment. No password needed: you confirm the sign-in in the bot.

Read next