When the Ethereum mainnet is congested, the transaction fee for a transfer can be several dollars. Layer 2 networks were created to solve this problem: they move most of the computation off the mainnet and send only the results and data back to it.

$ARB and $OP are the governance tokens of Arbitrum and Optimism, respectively. Current price: 0.1131 (24h -0.44%).

— What do Layer 2 networks do? —

Layer 2 networks are scaling networks built on top of the Ethereum mainnet. Transactions are executed on Layer 2 first, then the compressed data and results are submitted to the mainnet.

Because many transactions are bundled together for submission, the mainnet costs are shared among them, making the fee for each transaction much lower. After Ethereum’s Dencun upgrade in March 2024 introduced blob data (EIP-4844), the cost for Layer 2 networks to post data to the mainnet dropped significantly again.

— Two approaches: optimistic and zero-knowledge —

Optimistic Rollups assume that submitted results are correct by default, while allowing a challenge period during which anyone can submit a fraud proof. Arbitrum and Optimism use this approach.

ZK Rollups attach a validity proof (a zero-knowledge proof) to each submission. The result is confirmed as correct once it passes verification on the mainnet. ZKsync and Starknet fall into this category.

— Why withdrawals sometimes take a week —

On an Optimistic Rollup, withdrawing assets to the mainnet through the official cross-chain bridge requires waiting for the challenge period to end, which is generally around 7 days. Many third-party cross-chain bridges can deliver funds faster, but they add another layer of smart contract risk and fees from the bridge itself.

ZK Rollup results are confirmed by proofs, so they don't require such a long challenge period. Withdrawal wait times mainly depend on how quickly proofs are generated and submitted.

— What to watch out for when using Layer 2 —

When depositing or withdrawing, check which network you've selected. Assets at the same address are separate on different networks. Choosing the wrong network may make your assets temporarily inaccessible or even unrecoverable.

Layer 2 security relies to a large extent on Ethereum mainnet, but the design and maturity of each Layer 2 differ. Before bridging large amounts or using a new network, try it out with a small amount first.

— A final note —

Understanding Layer 2 networks helps explain why the same action can cost so much more on one network than another, and helps you avoid the mistake of choosing the wrong network when depositing or withdrawing. Don't invest with borrowed money—the pressure can lead you to make bad decisions.

Have you ever misunderstood this before?