Optimism RPC Endpoints
- Chain ID
- Family
- EVM
- Native token
- ETH
- Block time
- 2 s
https://api-optimism-mainnet-archive.n.dwellir.com/<your-api-key>wss://api-optimism-mainnet-archive.n.dwellir.com/<your-api-key>Optimism offers a low-cost and high-speed Ethereum Layer 2 (L2) blockchain solution, known as OP Mainnet. It is designed to scale Ethereum applications efficiently, maintaining compatibility with the Ethereum Virtual Machine (EVM). Optimism focuses on enhancing interoperability and composability between different chains through the Superchain project, utilizing the modular OP Stack. It aims to integrate various Layer 2 solutions into a unified layer, preventing ecosystem fragmentation.
Optimism RPC docs: methods and examplesGive it a try
Run a call against Optimism Mainnet, then copy it as code.
POST https://api-optimism-mainnet-archive.n.dwellir.com/<key>
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_blockNumber",
"params": []
}curl -sS -X POST https://api-optimism-mainnet-archive.n.dwellir.com/<your-api-key> \-H 'Content-Type: application/json' \-d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'
Pricing
Every response costs one API credit on the shared plans, with no compute units. For a fixed monthly price, move to an Unlimited Node or a dedicated cluster.
Shared Node Pricing
How many calls do you make per month?
Growth
$299/month
- 500 Responses /sec
- Pay in Crypto
- Dedicated Account Manager
150,000,000 responses ≈ 150.0M • Base $299 + Overages $0
Optimism Unlimited Node
- Unmetered requests within your tier
- Five tiers from 25 to 1,000 RPS
- No API credits, no overages
- Pay in Crypto
- HTTP & Websocket APIs
- Trace APIs
- Debug APIs
- Same endpoint URL and API key
- Self-serve in the dashboard
- Fixed monthly invoice
From $119/month
Optimism Dedicated Node Cluster
- Unlimited RPS & Responses
- HTTP & Websocket APIs
- Trace APIs
- Debug APIs
- Pay in Crypto
- Dedicated Account Manager
- Tailored load balancing
- Access to Engineering teams
- Global data centers
$3,366/month
Which Optimism RPC endpoint should I use?
Pick by what you are building. Mainnet runs on archive nodes, so calls at any past block work.
- Reads and sending transactions The HTTPS endpoint
- New blocks and events as they land The WebSocket endpoint
- Call traces and debugging trace_* and debug_* methods on a paid plan
- Testing an integration The free plan: 20 responses a second, 100,000 a day
- Steady high traffic An Unlimited Node at a flat monthly price
- Isolated nodes in regions you choose A dedicated node cluster
Developer Resources
FAQs
Dwellir provides Optimism RPC endpoints at https://api-optimism-mainnet-archive.n.dwellir.com/<your-api-key> for OP Mainnet (Chain ID 10) and https://api-optimism-sepolia.n.dwellir.com/<your-api-key> for Sepolia testnet (Chain ID 11155420). Replace <your-api-key> with the key from your Dwellir dashboard.
Yes. WebSocket endpoints are available at wss://api-optimism-mainnet-archive.n.dwellir.com/<your-api-key> for mainnet and wss://api-optimism-sepolia.n.dwellir.com/<your-api-key> for Sepolia testnet. Use WebSockets for real-time subscriptions like eth_subscribe for new blocks, pending transactions, and log events.
Yes. Dwellir's Optimism endpoints run archive nodes on both mainnet and Sepolia testnet, providing full historical state access. You can query balances, call contracts, and trace transactions at any past block height using methods like eth_call, eth_getBalance, and debug/trace APIs.
- Sign up at dwellir.com and retrieve your API key from the dashboard. 2. Replace your current RPC URL (e.g.,
https://mainnet.optimism.io) withhttps://api-optimism-mainnet-archive.n.dwellir.com/<your-api-key>. 3. For WebSocket connections, usewss://api-optimism-mainnet-archive.n.dwellir.com/<your-api-key>. The API is fully compatible with standard Ethereum JSON-RPC methods.
OP Mainnet uses Chain ID 10 with ETH as the native token and ~2 second block times. OP Sepolia testnet uses Chain ID 11155420. As the origin of the OP Stack, Optimism powers the Superchain ecosystem including Base, Zora, and others. As an Optimistic Rollup, withdrawals to Ethereum L1 require a ~7 day challenge period. Block explorers: optimistic.etherscan.io (mainnet).
Dwellir's Optimism endpoints are fully compatible with standard EVM tooling including Web3.js, ethers.js, viem, and Web3.py. Development frameworks like Hardhat, Foundry, and Truffle work seamlessly. The Optimism SDK provides L1↔L2 bridging functionality. Simply configure your provider with the Dwellir RPC URL and your API key.
Optimism withdrawals require three steps: 1) Initiate withdrawal on L2 (instant), 2) Prove withdrawal on L1 after state root is published (~1-2 hours), 3) Finalize withdrawal on L1 after the 7-day challenge period. The 7-day delay allows anyone to challenge fraudulent state roots with a fault proof. During this period, your funds are locked but secure. For faster exits, use third-party bridges like Across, Hop, or Stargate that provide liquidity for immediate L1 funds (with fees). The Optimism SDK or viem can automate the three-step process.
With Fault Proof Mainnet, withdrawals are now proven against dispute games in the DisputeGameFactory contract instead of the legacy L2OutputOracle. Key changes: 1) Withdrawals proven against challenged outputs may be delayed an additional 3.5 days, 2) Withdrawals pending during the upgrade needed to be re-proven with a new 7-day wait, 3) The OptimismPortal contract now references DisputeGameFactory. Update your SDK/viem versions to handle these changes automatically. Valid outputs challenged maliciously can delay withdrawals up to 9 additional days, though this is rare and expensive for attackers.
What our customers say
“Dwellir is more than just a service provider for Paribu Custody; they are a strategic partner. They consistently deliver tailored solutions, always standing by our side. Their reliability, speed, and proactive approach ensure seamless operations. Working with them truly makes a difference.”
Anıl KüçükrecepSenior Engineering Manager, Paribu
“DIA leverages Dwellir’s robust infrastructure as a primary and/or backup RPC provider to power oracle services across a wide range of blockchain networks. Their reliability and forward-thinking approach to supporting new and emerging ecosystems align closely with DIA’s mission to provide resilient, scalable data infrastructure for Web3. This collaboration enhances DIA’s redundancy model and strengthens DIA’s ability to serve as a foundational layer for decentralized applications across the multi-chain landscape.”
Dillon HansonHead of Business Development, DIA
“Dwellir’s support is genuinely standout. We rely on them heavily across 80+ networks, and they’ve been rock solid, reliable infrastructure and a fantastic team to work with.”
Denham PreenCo-founder, Envio“We are very impressed! You are fast at deploying new nodes and we haven’t experienced any downtime yet with Dwellir.”
Jarmo IsotaloCTO, Token Terminal
Start free on Optimism.1 response = 1 credit.
100,000 responses a day at 20 per second. The same plan covers 150+ networks.