Using Layer 2s (Optimism, Arbitrum) with MetaMask

Try Tangem secure wallet →

Using Layer 2s (Optimism, Arbitrum) with MetaMask

Table of contents


Overview

MetaMask is a non-custodial software wallet that already sits in the middle of most DeFi workflows. Adding Layer 2 networks like Optimism and Arbitrum gives you lower per-transaction gas fees and faster in-network swaps compared with Ethereum mainnet. I’ve been using MetaMask with L2s daily for months; it changes routine costs but introduces a few operational differences you should know before moving any serious funds.

Short version: you can add L2s manually or via in-wallet prompts, bridge funds from mainnet, and still sign transactions the same way. But bridging carries contract risk, withdrawals can have delays, and some dApps behave differently on each L2.

Quick primer: What is a Layer 2?

Layer 2 (L2) networks are EVM-compatible chains that handle transactions off-chain or in batches, then post proofs back to Ethereum mainnet. The result: lower gas fees per tx and higher throughput. Optimism and Arbitrum are two popular L2s built for EVM-compatible dApps. They both aim to cut costs, though they use different technical approaches under the hood (optimistic rollup designs historically used fraud proofs and challenge windows). If you care how this works under the hood, read the developer primer in developer-integration.

Prepare MetaMask (desktop & mobile)

Step one: make sure MetaMask is installed and updated on your desktop or phone. If you haven't set it up yet, follow the guides for setup-desktop or setup-mobile. Backup your seed phrase and store it offline (paper, steel backup). Don’t screenshot it. Seriously.

MetaMask on desktop injects the provider into browser dApps. MetaMask mobile also includes an in-app dApp browser and supports WalletConnect for other mobile dApps — see walletconnect-and-mobile-browser. If you use a hardware wallet, connect it via connect-ledger or connect-trezor before adding L2 networks.

Step-by-step: Add Optimism to MetaMask (add optimism metamask)

Step-by-step works best. Here’s the manual path (no RPC values are listed here — copy the official ones from the network docs):

  1. Open MetaMask and unlock your account.
  2. Click the network dropdown (top center) and choose "Add Network".
  3. Select "Add a custom network" or "Add network" and paste the network details from the official Optimism docs (network name, RPC URL, chain ID, currency symbol, block explorer URL).
  4. Save. Switch to the new Optimism network in the dropdown.

MetaMask will now show Optimism as an available network. You can also accept an in-dApp prompt that asks to add Optimism automatically. I sometimes use the prompt when connecting to a known dApp. And I always double-check the RPC and chain ID before saving.

Step-by-step: Add Arbitrum to MetaMask (add arbitrum metamask)

The process is identical for Arbitrum:

  1. In MetaMask, open the network dropdown → "Add Network" → "Add a custom network".
  2. Paste the official Arbitrum RPC, chain ID, and explorer URL from Arbitrum’s docs.
  3. Save and switch to Arbitrum.

If you prefer a step-by-step screenshot walkthrough, check add-custom-network.

Moving funds and MetaMask L2 gas savings

Bridging is the usual move: send ETH (or tokens) from Ethereum mainnet to the L2 using an official bridge or a trusted third-party bridge. Expect to pay mainnet gas for the deposit — that gas is still paid on mainnet even though L2 txs are cheap later. After the deposit posts and the bridge finalizes, your wallet balance on the L2 will reflect the funds.

How much do you save? Typical L2 transactions cost a tiny fraction of mainnet gas — for swaps and approvals you’ll usually spend cents to a few dollars instead of tens of dollars on mainnet. But remember: depositing and withdrawing can still hit you with mainnet gas. See the more technical explainer at gas-fees-and-eip-1559.

Test with a small transfer first (0.01–0.05 ETH equivalent). That simple habit saved me from a misconfigured bridge once.

For bridging guides and security notes, read bridges-cross-chain.

Connect to DeFi and dApps on L2s

Most EVM-compatible dApps let you connect MetaMask the same way they do on mainnet. Click "Connect Wallet", approve the injected MetaMask provider, switch networks if required, and sign transactions. Popular protocols like Uniswap or Aave deploy to L2s (so you can swap, lend, or stake with lower per-tx costs). Which L2 to use? That depends on which protocol and liquidity you need.

A few practical tips:

In my experience the biggest user mistake is approving unlimited allowances to a contract without checking what it does.

Token & NFT management on L2s

Tokens on L2s are ERC-20 equivalents; NFTs use ERC-721/1155 standards. To add a custom token in MetaMask, copy the token contract address from the L2 block explorer and use "Import Tokens" → paste address → add token. See token-management and nft-management.

Note: desktop MetaMask may not show NFTs as cleanly as mobile. If you care about NFTs, try the mobile app or a dedicated viewer. Also be aware of spam tokens and NFT airdrops; you can hide them but don’t trust unexpected contracts.

Security checklist and common mistakes

I once left an unlimited allowance for a loan contract and had to revoke it mid-week (awkward). What I learned: periodic housekeeping matters.

Quick troubleshooting

Comparison: Mainnet vs Optimism vs Arbitrum (table)

Network EVM-compatible Typical use case Relative tx gas (vs mainnet) Withdrawal friction MetaMask support
Ethereum mainnet Yes Settlement, highest liquidity Baseline Immediate Full native support
Optimism Yes Cheap swaps, lending, frequent txs Much lower Withdrawals may wait based on fraud-proof design (varies) Add via custom network
Arbitrum Yes High-throughput DeFi, NFTs on L2 Much lower Withdrawals may wait based on design (varies) Add via custom network

(Use official docs or explorers for current technical parameters.)

FAQ

Q: Is it safe to keep crypto in a hot wallet? A: Hot wallets like MetaMask are convenient for daily DeFi. They are non-custodial and put you in control of private keys, but they are exposed to phishing, malicious dApps, and device compromise. For large holdings use a hardware wallet; for daily activity use a hot wallet with disciplined security practices. See security-best-practices.

Q: How do I revoke token approvals? A: Use a token-approval revocation tool or the wallet UI that lists approvals and revoke the allowance you no longer want to grant. Always verify the contract address before revoking via a third-party tool. See revoke-approvals.

Q: What happens if I lose my phone? A: If you have your seed phrase, restore MetaMask on a new device and set a new password. If you lose the seed phrase and phone, funds are likely irrecoverable. Back up the seed phrase securely (see backup-and-recovery-options).

Q: Why are L2 gas fees sometimes higher than expected? A: L2 fees vary by network activity and the cost to post batches to mainnet. Also certain operations (like bridging) still incur mainnet gas. See gas-fees-and-eip-1559.

Conclusion & next steps

Using Optimism or Arbitrum with MetaMask gives you meaningful transaction cost savings for everyday DeFi. It also adds steps: add the network (manual or prompt), bridge funds, and verify contracts before approving. If you plan to use L2s regularly, do these three things today: (1) add the network using official RPC details, (2) make a small test transfer, and (3) enable hardware-wallet signing for larger amounts.

Want focused how-tos? Start with add-custom-network, then read the bridging guide at bridges-cross-chain and the gas primer at gas-fees-and-eip-1559. But don’t treat L2s as a shortcut around security—treat them as an extra tool in your crypto toolbox.

Try Tangem secure wallet →