opBNB RPC Endpoint

Fast, flat-rate opBNB RPC node provider — free tier, no KYC, HTTP & WebSocket.

opBNB is a Layer 2 scaling network for BNB Smart Chain built on the Optimism OP Stack (Bedrock). It uses BNB as its gas token and is tuned for high throughput and low fees.

Network: opBNB
Type: EVM
Chain ID: 204
Slug: opbnb
Native token: BNB (BNB)
Block time: ~1 second
Finality: Fast L2 confirmation; withdrawals to BNB Smart Chain are subject to a 7-day challenge window
Mainnet: 2023
Category: Layer 2 (OP Stack optimistic rollup on BNB Smart Chain)

About opBNB

opBNB was developed by the BNB Chain team and launched its mainnet in 2023 as an optimistic rollup that settles to BNB Smart Chain. It is built on the OP Stack with optimizations aimed at higher gas limits and throughput than a default OP Stack deployment.

The network is EVM-compatible and uses BNB for gas, so standard Ethereum tooling such as Hardhat, Foundry, ethers.js, and viem applies directly. opBNB targets a roughly 1-second block time and very low transaction fees, making it suited to gaming, social, and high-frequency dApps. As an optimistic rollup it carries a 7-day challenge window for withdrawals back to BNB Smart Chain.

Common Use Cases on opBNB

  • Low-fee EVM transactions
  • On-chain gaming
  • SocialFi applications
  • High-frequency dApps
  • DeFi protocols
  • NFT minting

opBNB Ecosystem

opBNB hosts DeFi and infrastructure projects within the BNB Chain ecosystem, including deployments from PancakeSwap and tooling from providers such as Pyth and the BNB Greenfield stack.

HTTP Endpoint

https://rpc.swiftnodes.io/rpc/opbnb?key=YOUR_API_KEY

WebSocket Endpoint

wss://rpc.swiftnodes.io/ws/opbnb?key=YOUR_API_KEY

Quick Start: Connect to opBNB

cURL

curl -X POST https://rpc.swiftnodes.io/rpc/opbnb?key=YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

ethers.js

import { JsonRpcProvider } from "ethers";

const provider = new JsonRpcProvider(
  "https://rpc.swiftnodes.io/rpc/opbnb?key=YOUR_API_KEY"
);

const blockNumber = await provider.getBlockNumber();
console.log("opBNB block:", blockNumber);

viem

import { createPublicClient, http } from "viem";

const client = createPublicClient({
  transport: http("https://rpc.swiftnodes.io/rpc/opbnb?key=YOUR_API_KEY"),
});

const blockNumber = await client.getBlockNumber();

web3.py

from web3 import Web3

w3 = Web3(Web3.HTTPProvider("https://rpc.swiftnodes.io/rpc/opbnb?key=YOUR_API_KEY"))
print("opBNB block:", w3.eth.block_number)

Add opBNB to MetaMask

Network Name: opBNB (SwiftNodes)
RPC URL: https://rpc.swiftnodes.io/rpc/opbnb?key=YOUR_API_KEY
Chain ID: 204
Currency Symbol: BNB
WebSocket: wss://rpc.swiftnodes.io/ws/opbnb?key=YOUR_API_KEY

Bridging to opBNB

Assets bridge through the opBNB canonical bridge from BNB Smart Chain, with additional routes via Celer cBridge and other third-party bridges.

Features of SwiftNodes for opBNB

  • Multiple load-balanced upstream nodes for high availability
  • Health-checked every 60 seconds with automatic failover
  • Free tier available — no credit card or KYC required
  • Flat-rate monthly pricing with no per-request fees
  • HTTP and WebSocket support
  • One API key works across all 75+ supported chains, including opBNB

Rate Limits

PlanPriceHTTP req/sWS msg/s
Free$0/mo21
Starter$49/mo5025
Growth$89/mo15075
Scale$149/mo300150
Pro$249/mo500250

Frequently Asked Questions: opBNB

What's opBNB's chain ID?

opBNB mainnet is chain ID 204.

What token is used for gas on opBNB?

Gas on opBNB is paid in BNB.

Is opBNB an optimistic rollup?

Yes - opBNB is built on the Optimism OP Stack (Bedrock) as an optimistic rollup that settles to BNB Smart Chain.

Is WebSocket supported?

Yes - SwiftNodes provides HTTP and WebSocket (wss://) endpoints for opBNB.

Ready to start building on opBNB? Connect your wallet and get a free API key in 30 seconds. No email or KYC required.