Optimism RPC Endpoint
Flat-rate Optimism RPC provider and Optimism RPC node access: free tier, no KYC, HTTP & WebSocket. Optimism mainnet chain ID 10.
https://rpc.swiftnodes.io/rpc/optimism?key=YOUR_API_KEYwss://rpc.swiftnodes.io/ws/optimism?key=YOUR_API_KEYOptimism (OP Mainnet) is an Ethereum L2 optimistic rollup and the foundational chain of the Superchain — a network of OP Stack rollups including Base, Mode, Zora, World Chain, and more. OP Mainnet pioneered the modular rollup-as-a-service model.
optimismOptimism on the SwiftNodes fleet, right now
11 of 12 probed RPC methods supported (batch, debug_traceCall, trace_transaction, trace_filter). 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-10-04. Network status
Optimism developer facts, measured
- Block time:
- ~2 s (average of the last 1,000 blocks)
- Finality:
- the finalized tag trails the head by ~889 blocks (~30 min)
- eth_getLogs range:
- 5,000-block ranges accepted; the next size we test was refused
- Historical state:
- readable at least 1,000,000 blocks back
Measured 2026-10-04 through this page's endpoint, re-measured weekly. Limits can differ between the upstream nodes behind it. All chains: measured chain facts.
About Optimism
Optimism launched its mainnet in December 2021 and rebranded as "OP Mainnet" with the Superchain announcement. The chain runs the OP Stack, an open-source modular rollup framework that any team can use to launch their own L2. Block times are 2 seconds; gas fees scale with Ethereum mainnet fees but are typically 10-50x cheaper.
The Optimism Collective governs the network through the bicameral structure of the Token House (OP holders) and Citizen House (selected individuals). Retroactive Public Goods Funding (RetroPGF) is one of the most-watched mechanisms in onchain governance.
Common Use Cases on Optimism
- DeFi (Velodrome, Synthetix, Uniswap V3, Aave)
- Cross-Superchain interoperability via shared sequencing
- Worldcoin (Worldchain) and identity applications
- Retroactive funding for public goods
- Building new L2s via the OP Stack
Optimism Ecosystem
Velodrome is the dominant DEX. Synthetix's perpetual futures, Uniswap V3, Aave V3, and the broader Superchain (Base, Mode, Zora, Worldchain, Lisk) all interoperate via shared OP Stack primitives.
Optimism Mainnet RPC URL (HTTP)
https://rpc.swiftnodes.io/rpc/optimism?key=YOUR_API_KEYOptimism WebSocket RPC URL
wss://rpc.swiftnodes.io/ws/optimism?key=YOUR_API_KEYQuick Start: Connect to Optimism
cURL
curl -X POST https://rpc.swiftnodes.io/rpc/optimism?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/optimism?key=YOUR_API_KEY"
);
const blockNumber = await provider.getBlockNumber();
console.log("Optimism block:", blockNumber);viem
import { createPublicClient, http } from "viem";
const client = createPublicClient({
transport: http("https://rpc.swiftnodes.io/rpc/optimism?key=YOUR_API_KEY"),
});
const blockNumber = await client.getBlockNumber();web3.py
from web3 import Web3
w3 = Web3(Web3.HTTPProvider("https://rpc.swiftnodes.io/rpc/optimism?key=YOUR_API_KEY"))
print("Optimism block:", w3.eth.block_number)Add Optimism to MetaMask
https://rpc.swiftnodes.io/rpc/optimism?key=YOUR_API_KEYwss://rpc.swiftnodes.io/ws/optimism?key=YOUR_API_KEYBridging to Optimism
Native Optimism Gateway at https://app.optimism.io/bridge for canonical bridging. Across, Hop, Stargate, Squid for fast bridges. Cross-Superchain bridging is being unified via the Superchain Interop standard.
Features of SwiftNodes for Optimism
- 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 75+ supported chains, including Optimism
Rate Limits
| Plan | Price | HTTP req/s | WS msg/s |
|---|---|---|---|
| Free | $0/mo | 2 | 1 |
| Starter | $49/mo | 50 | 25 |
| Growth | $89/mo | 150 | 75 |
| Scale | $149/mo | 300 | 150 |
| Pro | $249/mo | 500 | 250 |
Frequently Asked Questions: Optimism
What's Optimism's chain ID?
OP Mainnet is chain ID 10. OP Sepolia is 11155420.
What's the Superchain?
A network of OP Stack chains (Base, Mode, Zora, Worldchain, etc.) that share security, governance frameworks, and — eventually — sequencing and bridging. Each chain is technically separate but uses the same underlying tech stack.
Does OP have its own token?
Yes — OP is used for governance via the Optimism Collective. It's not used for gas (which is ETH).
Optimism RPC methods
Measured weekly through this endpoint: what each method returns on Optimism, its limits, and an example request.
- eth_getLogssupported
- eth_getBlockReceiptssupported
- eth_feeHistorysupported
- eth_getProofsupported
- eth_createAccessListsupported
- debug_traceCallsupported
- trace_blocksupported
- trace_transactionsupported
Optimism guides from the blog
- Best Optimism RPC Providers (2026): Pricing, Free Tiers and Limits ComparedSeven OP Mainnet RPC providers compared on current pricing, free tiers and measured limits, including log caps, tracing and pre-Bedrock history. Pricing checked October 6, 2026.
- 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.
- Zora RPC: A 2026 Developer's GuideZora is an OP Stack L2 built for mints, and minting traffic is bursty in a way that punishes public RPC endpoints. Here's what you need to build on Zora in 2026 — chain ID 7777777, Superchain finality, the public-node trap, and the query patterns for reading mints at scale.
Related L2 & rollup chains
Explore RPC endpoints for other L2 & rollup networks on SwiftNodes:
Ready to start building on Optimism? Connect your wallet and get a free API key in 30 seconds. No email or KYC required.