opBNB RPC Endpoint

Flat-rate opBNB RPC provider and opBNB RPC node access: free tier, no KYC, HTTP & WebSocket. opBNB mainnet chain ID 204.

opBNB mainnet RPC URL: https://rpc.swiftnodes.io/rpc/opbnb?key=YOUR_API_KEY
WebSocket: wss://rpc.swiftnodes.io/ws/opbnb?key=YOUR_API_KEY

Get your free opBNB API key

250,000 requests/month · 20 req/s · all chains · no card · no KYC

Get my free API key →

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: ~0.25 seconds
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)

opBNB on the SwiftNodes fleet, right now

Status: online
Latency: 102 ms
Latest block: 209,343,841
WebSocket: available
Uptime, last 30 days: 99.99%

11 of 12 probed RPC methods supported (archive, batch, debug_traceCall, trace_transaction). The gaps are listed per chain in the method support matrix.

Status and latency from our health checks, refreshed about every 5 minutes. Uptime history. Method support probed automatically on 2026-11-01. Network status

opBNB developer facts, measured

Block time:
~250 ms (average of the last 1,000 blocks)
Finality:
the finalized tag trails the head by ~48 blocks (~12 s)
eth_getLogs range:
50,000-block ranges accepted (the largest we test)
Historical state:
readable 64 blocks back, not 10,000

Measured 2026-11-22 through this page's endpoint, re-measured weekly. Limits can differ between the upstream nodes behind it. All chains: measured chain facts.

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 produces a block roughly every 0.25 seconds (measured September 2026) with 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.

opBNB Mainnet RPC URL (HTTP)

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

opBNB WebSocket RPC URL

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

opBNB Testnet RPC URL

Same API key, same plan: testnet requests count like any other request.

Testnet · chain ID 5611
HTTP: https://rpc.swiftnodes.io/rpc/opbnb-testnet?key=YOUR_API_KEY
WebSocket: wss://rpc.swiftnodes.io/ws/opbnb-testnet?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

Get your free opBNB API key

30 seconds, no card, no KYC. Sign in with Google, GitHub, email or a wallet. Or try the requests above now with key=demo.

Get a free 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

  • Load-balanced across multiple upstream nodes wherever a chain has more than one, with automatic failover
  • Health-checked every 2 minutes 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 142 supported chains and their testnets, including opBNB

Rate Limits

PlanPriceHTTP req/sWS msg/sSign up
Free$0/mo201Start free →
Starter$49/mo7025Choose Starter →
Growth$89/mo15075Choose Growth →
Scale$149/mo300150Choose Scale →
Pro$249/mo600250Choose Pro →

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. On the free plan, WebSocket is one connection with new-block subscriptions only; log and pending-transaction subscriptions need a paid plan.

opBNB RPC methods

Measured weekly through this endpoint: what each method returns on opBNB, its limits, and an example request.

opBNB guides from the blog

  • opBNB RPC: A Developer's Guide (Chain ID 204)opBNB is an OP Stack L2 settling to BNB Smart Chain, with 250 ms blocks. Measured finality, fees, the 50,000-block getLogs cap and a stale-finality trap.
  • Optimism RPC: The Chain That Became a TemplateOptimism (chain ID 10) is both a mature optimistic rollup — 2-second blocks, ETH gas, fault proofs live since 2024 — and the origin of the OP Stack, the codebase behind Base, Zora, opBNB, Unichain, and Soneium. The developer map: what the two-layer fee model means for gas estimation, why traces are uneven there, and how everything you learn on OP Mainnet carries across the family.

Related L2 & rollup chains

Explore RPC endpoints for other L2 & rollup networks on SwiftNodes:

Ready to start building on opBNB? Get a free API key in 30 seconds. No KYC, no card: sign in with Google, GitHub, email or a wallet.