BNB Smart Chain logo

BNB Smart Chain opBNB Mainnet

RPC Endpoints

Chain ID: 0xcc · BNB

Other BNB Smart Chain networks:MainnetTestnetopBNB Testnet
How to add BNB Smart Chain to MetaMask or other wallets

BNB Smart Chain opBNB Mainnet uses BNB as its native currency. Chain ID: 204 (0xcc). Below are 3 public RPC endpoints you can use to connect wallets, dApps, and developer tools to BNB Smart Chain opBNB Mainnet.

StatusRPC EndpointChain IDCurrencyExplorerWallet
Checking
https://opbnb.drpc.org/
0xccBNBExplorer
Checking
https://opbnb-mainnet-rpc.bnbchain.org
0xccBNBExplorer
Checking
https://rpc.swiftnodes.io/rpc/opbnb?key=demo
0xccBNBExplorer

Connect to BNB Smart Chain opBNB Mainnet with ethers.js

import { ethers } from "ethers";

const provider = new ethers.JsonRpcProvider("https://opbnb.drpc.org/");

const network = await provider.getNetwork();
console.log(network.chainId); // 204n

BNB Smart Chain opBNB Mainnet — common questions

What is the RPC URL for BNB Smart Chain opBNB Mainnet?
There are 3 public RPC endpoints for BNB Smart Chain opBNB Mainnet, including https://opbnb.drpc.org/. See the full list in the table above.
What is the Chain ID for BNB Smart Chain opBNB Mainnet?
The Chain ID for BNB Smart Chain opBNB Mainnet is 204 (0xcc in hexadecimal).
What is the native currency of BNB Smart Chain opBNB Mainnet?
The native currency of BNB Smart Chain opBNB Mainnet is BNB.
How do I add BNB Smart Chain opBNB Mainnet to MetaMask?
Use the "Add to Wallet" button on this page to add BNB Smart Chain opBNB Mainnet to MetaMask automatically, or follow our step-by-step guide for BNB Smart Chain.