opBNB Mainnet
RPC EndpointsChain ID: 0xCC · BNB
Other opBNB networks:Testnet
opBNB Mainnet uses BNB as its native currency. Chain ID: 204 (0xCC). Below are 4 public RPC endpoints you can use to connect wallets, dApps, and developer tools to opBNB Mainnet.
Connect to opBNB Mainnet with ethers.js
import { ethers } from "ethers";
const provider = new ethers.JsonRpcProvider("https://opbnb-mainnet-rpc.bnbchain.org");
const network = await provider.getNetwork();
console.log(network.chainId); // 204nopBNB Mainnet — common questions
What is the RPC URL for opBNB Mainnet?
There are 4 public RPC endpoints for opBNB Mainnet, including https://opbnb-mainnet-rpc.bnbchain.org. See the full list in the table above.
What is the Chain ID for opBNB Mainnet?
The Chain ID for opBNB Mainnet is 204 (0xCC in hexadecimal).
What is the native currency of opBNB Mainnet?
The native currency of opBNB Mainnet is BNB.
How do I add opBNB Mainnet to MetaMask?
Use the "Add to Wallet" button on this page to add opBNB Mainnet to MetaMask automatically, or follow our step-by-step guide for opBNB.