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

Decentralized RPC Network
100+ blockchain RPCs
No rate limits
For builders and traders
| Blockchain | RPC URL | Chain ID | Native Currency | Block Explorer | Actions |
|---|---|---|---|---|---|
⏳Optimism | https://optimism.drpc.org | 0xa | ETH | https://optimistic.etherscan.io/ | |
⏳Optimism | https://mainnet.optimism.io | 0xa | ETH | https://optimistic.etherscan.io/ | |
⏳Optimism | https://rpc.swiftnodes.io/rpc/optimism?key=demo | 0xa | ETH | https://optimistic.etherscan.io/ |
import { ethers } from "ethers";
const provider = new ethers.JsonRpcProvider("https://optimism.drpc.org");
const network = await provider.getNetwork();
console.log(network.chainId); // 10nThere are 3 public RPC endpoints for Optimism Mainnet, including https://optimism.drpc.org. See the full list in the table above.
The Chain ID for Optimism Mainnet is 10 (0xa in hexadecimal).
The native currency of Optimism Mainnet is ETH.
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.