Optimism Chain ID (10) & RPC URL: Add Optimism to MetaMask

Network settings for Optimism: chain ID 10, a working RPC URL and the explorer. Add it to MetaMask in one click, or copy the fields below.

  • Chain ID10
  • Hex0xa
  • Gas tokenETH
  • RPC checkedOctober 27

Non-custodial · you sign every transaction0.7% service fee, shown before you confirm

The Optimism chain ID is 10 (0xa in hex). OP Mainnet, formerly called Optimism, is an optimistic rollup on Ethereum and the first chain of the OP Stack. Gas is paid in ETH. Below are the exact settings MetaMask asks for, public RPC endpoints we tested on October 27, 2026, and a one-click button to add the network.

Optimism Network Details for MetaMask

FieldValue
Network nameOP Mainnet
RPC URLhttps://mainnet.optimism.io
Chain ID10
Currency symbolETH
Block explorerhttps://optimistic.etherscan.io

Copy these values exactly. If the RPC URL returns a different chain ID than the one you enter, MetaMask stops with a chain ID mismatch warning: that usually means a typo or an RPC for another network.

Optimism RPC URLs (Tested October 27, 2026)

RPC endpointReturned chain IDResponse time
https://mainnet.optimism.io10245 ms
https://optimism.drpc.org10177 ms
https://optimism-rpc.publicnode.com10184 ms
https://optimism-rpc.blockreq.com/v1/rpc/public10186 ms
https://optimism.gateway.tenderly.co10332 ms

We sent eth_chainId and eth_blockNumber to each endpoint from Europe on October 27, 2026; the table lists only endpoints that answered with chain ID 10. The latest block was 158,756,755. Public endpoints are free and rate limited: for an app or a bot, use a paid provider or your own node.

How to Add Optimism to MetaMask

  1. Click Add Optimism to MetaMask above, or open MetaMask and go to Networks → Add a custom network.
  2. Enter the network name OP Mainnet, RPC URL https://mainnet.optimism.io and chain ID 10.
  3. Set the currency symbol to ETH and the block explorer to https://optimistic.etherscan.io.
  4. Save and switch to the new network. Your 0x address is the same as on other EVM networks.

Tip: The network is listed as OP Mainnet in most wallets now; it is the same network as “Optimism” with chain ID 10.

OP Sepolia Testnet

FieldValue
Network nameOP Sepolia
RPC URLhttps://sepolia.optimism.io
Chain ID11155420 (0xaa37dc)
Currency symbolETH
Block explorerhttps://sepolia-optimism.etherscan.io

Testnet tokens come from faucets and are worth nothing. Do not send real ETH to a wallet connected to OP Sepolia.

How to Get ETH on Optimism

The widget at the top of this page is set to swap into ETH on Optimism: pick the token you have on another network, enter your address and sign once. Routes, fees and timing are covered in our Optimism bridge guide.

FAQ

What is the Optimism chain ID?

The Optimism chain ID is 10, or 0xa in hexadecimal. Wallets use it to make sure a transaction is signed for Optimism and not another network.

What is the Optimism RPC URL?

A working public RPC URL is https://mainnet.optimism.io. We tested it on October 27, 2026: it returned chain ID 10. Other working endpoints are listed in the table on this page.

How do I add Optimism to MetaMask?

Click "Add Optimism to MetaMask" on this page and approve the request in MetaMask. To add it manually, go to Networks, then Add a custom network, and enter the network name, RPC URL https://mainnet.optimism.io, chain ID 10, currency symbol ETH and the explorer URL.

What token do I need for gas on Optimism?

Gas on Optimism is paid in ETH. Keep a small amount in your wallet, otherwise you cannot send or swap the tokens you hold there.

What is the Optimism testnet chain ID?

The OP Sepolia testnet uses chain ID 11155420 (0xaa37dc) and the RPC URL https://sepolia.optimism.io. Testnet tokens have no value.