Optimism logo

Optimism Mainnet

RPC Endpoints

Chain ID: 0xa · ETH

Other Optimism networks:Sepolia Testnet
How to add Optimism to MetaMask or other wallets

Optimism Mainnet uses ETH as its native currency. Chain ID: 10 (0xa). Below are 4 public RPC endpoints you can use to connect wallets, dApps, and developer tools to Optimism Mainnet.

StatusRPC EndpointChain IDCurrencyExplorerWallet
Checking
https://optimism.drpc.org
0xaETHExplorer
Checking
https://mainnet.optimism.io
0xaETHExplorer
Checking
https://rpc.swiftnodes.io/rpc/optimism?key=demo
0xaETHExplorer
Checking
https://optimism-mainnet.gateway.tatum.io
0xaETHExplorer

Connect to Optimism Mainnet with ethers.js

import { ethers } from "ethers";

const provider = new ethers.JsonRpcProvider("https://optimism.drpc.org");

const network = await provider.getNetwork();
console.log(network.chainId); // 10n

Optimism Mainnet — common questions

What is the RPC URL for Optimism Mainnet?
There are 4 public RPC endpoints for Optimism Mainnet, including https://optimism.drpc.org. See the full list in the table above.
What is the Chain ID for Optimism Mainnet?
The Chain ID for Optimism Mainnet is 10 (0xa in hexadecimal).
What is the native currency of Optimism Mainnet?
The native currency of Optimism Mainnet is ETH.
How do I add Optimism Mainnet to MetaMask?
Use the "Add to Wallet" button on this page to add Optimism Mainnet to MetaMask automatically, or follow our step-by-step guide for Optimism.