Optimism Mainnet
RPC EndpointsChain ID: 0xa · ETH
Other Optimism networks:Sepolia Testnet
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.
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); // 10nOptimism 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.