opBNB logo

opBNB Mainnet

RPC Endpoints

Chain ID: 0xCC · BNB

Other opBNB networks:Testnet
How to add opBNB to MetaMask or other wallets

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.

StatusRPC EndpointChain IDCurrencyExplorerWallet
Checking
https://opbnb-mainnet-rpc.bnbchain.org
0xCCBNBExplorer
Checking
https://opbnb.publicnode.com
0xCCBNBExplorer
Checking
https://opbnb-mainnet.nodereal.io/v1/64a9df0874fb4a93b9d0a3849de012d3
0xCCBNBExplorer
Checking
https://rpc.swiftnodes.io/rpc/opbnb?key=demo
0xCCBNBExplorer

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); // 204n

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