Optimism logoOptimism Mainnet RPC Endpoints

Optimism 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.

Other Optimism Networks:

dRPC Logo

dRPC

Decentralized RPC Network

100+ blockchain RPCs

No rate limits

For builders and traders

Connect via dRPC
BlockchainRPC URLChain IDNative CurrencyBlock ExplorerActions
Optimism

https://optimism.drpc.org

0xaETHhttps://optimistic.etherscan.io/
Optimism

https://mainnet.optimism.io

0xaETHhttps://optimistic.etherscan.io/
Optimism

https://rpc.swiftnodes.io/rpc/optimism?key=demo

0xaETHhttps://optimistic.etherscan.io/

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 FAQ

What is the RPC URL for Optimism Mainnet?

There are 3 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.