Optimism RPC Endpoint

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

Optimism (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.

Network: Optimism
Type: EVM
Chain ID: 10
Slug: optimism
Native token: ETH (Ether)
Block time: ~2 seconds
Finality: Soft: ~2s. Hard (L1): ~7 days (optimistic rollup challenge window)
Mainnet: December 16, 2021
Category: Optimistic Rollup (OP Stack, Superchain)

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.

HTTP Endpoint

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

WebSocket Endpoint

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

Quick 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

Network Name: Optimism (SwiftNodes)
RPC URL: https://rpc.swiftnodes.io/rpc/optimism?key=YOUR_API_KEY
Chain ID: 10
Currency Symbol: ETH
WebSocket: wss://rpc.swiftnodes.io/ws/optimism?key=YOUR_API_KEY

Bridging 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

  • 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 Optimism

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: 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).

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