Logo

Optimism RPC Endpoints & Reliable OP Mainnet API

Optimism is a low-cost and lightning-fast Ethereum L2 blockchain

Chain ID10
CurrencyETH

Connect to Optimism RPC endpoints for wallet flows, contract apps, and live backends, with archive and trace support where supported.

Optimism is a low-cost and lightning-fast Ethereum L2 blockchain

Create RPC Endpoint

Optimism RPC Endpoint

The below example uses the public API endpoint*. This endpoint is only suitable for testing. To avoid rate limiting and service interruption, sign up now to get your own API key.
Example CURL
curl -H 'content-type:application/json' -d '{"id": 1, "jsonrpc": "2.0", "method": "eth_blockNumber"}' 'https://optimism.api.onfinality.io/public'
curl -H 'content-type:application/json' -d '{"id": 1, "jsonrpc": "2.0", "method": "eth_blockNumber"}' 'https://optimism.api.onfinality.io/public'
HTTPs
https://optimism.api.onfinality.io/public
https://optimism.api.onfinality.io/public
Websocket
wss://optimism.api.onfinality.io/public-ws
wss://optimism.api.onfinality.io/public-ws

* The public endpoint is rate limited

RPC API Service

RPC API Features

ArchiveTrace

RPC Regions

Hong KongFranceN.Virginia

PRICING

Calculate Your Costs

Only pay for what you need.

Million Standard Requests
0100M200M300M400M
Total Cost
$49/ month

Recommended Plan: GROWTH

Continue with this plan

Use OnFinality for Optimism RPC endpoints, Optimism API access, and reliable Ethereum L2 infrastructure. OnFinality supports teams looking for dependable Optimism RPC providers, low-cost node hosting options, and scalable endpoints for production dApps.

What is Optimism?

Optimism is a fast, stable, and scalable L2 blockchain built by Ethereum developers, for Ethereum developers. Built as a minimal extension to existing Ethereum software, Optimism’s EVM-equivalent architecture scales your Ethereum apps without surprises. If it works on Ethereum, it works on Optimism at a fraction of the cost.

Optimism pioneered the OP Stack, an open-source framework powering an ecosystem of Layer 2 chains called the Superchain. The Superchain project seeks to maximize interoperability and composability between different chains using the OP Stack, and integrate siloed L2s into a single, cohesive layer.

Why Use an Optimism RPC Provider?

An Optimism RPC endpoint is the gateway for applications to read blockchain data, submit transactions, and connect backend services to Optimism. Whether you are building a wallet, DeFi product, analytics tool, game, bot, or backend service, a reliable RPC provider ensures stable access without the overhead of running your own node.

Public RPC endpoints are often rate-limited and lack observability. For production workloads, authenticated endpoints from a managed provider like OnFinality offer clearer usage limits, request analytics, and a path to higher capacity.

Optimism RPC on OnFinality

OnFinality provides managed Optimism RPC API endpoints with support for:

  • EVM JSON-RPC – Standard Ethereum-compatible methods.
  • HTTP and WebSocket – Choose the transport that fits your application.
  • Archive and trace access – Query historical state and debug transactions where supported.
  • Observability – Monitor request usage, errors, and limits through the OnFinality dashboard.

OnFinality endpoints are suitable for production dApps, wallets, DeFi products, analytics tools, games, bots, and backend services.

How to Connect to Optimism with OnFinality

  1. Create or sign in to an OnFinality account.
  2. Choose Optimism from the supported networks list.
  3. Create an API endpoint (or deploy a dedicated node if needed).
  4. Test the endpoint with the example method eth_blockNumber.
  5. Monitor request usage, errors, and limits before moving critical traffic.

Optimism RPC vs Public RPC

Public endpoints are useful for quick tests, but authenticated OnFinality endpoints are designed for teams that need clearer limits, request visibility, and a path to higher-capacity infrastructure.

Reliable Optimism RPC Provider Signals

Choose OnFinality when your team needs direct Optimism endpoint access and OP Mainnet RPC connectivity, authenticated API access, request analytics, and Ethereum L2 infrastructure for production workloads.

If you are comparing provider criteria, read Most reliable Optimism RPC provider. For setup-oriented intent, use Optimism RPC endpoints guide.

Optimism RPC and developer resources

A useful Optimism RPC page should make the connection path, supported capabilities, and production planning trade-offs clear before a developer opens the dashboard.

Best fit: mainnet production workflows for wallet flows, contract apps, and live backends.

What builders usually check first:

  • Read current chain state for apps, dashboards, wallets, and backend services.
  • Submit transactions and monitor confirmations from Ethereum-compatible tools.
  • Query logs, receipts, and historical state when indexers or analytics pipelines need more than the latest block.
  • Debug contract behaviour with trace data where the network supports it.

Supported capability notes:

  • Authenticated Optimism RPC/API access for wallet flows, contract apps, and live backends.
  • Flexible HTTP and WebSocket access for app, backend, and integration workflows.
  • Archive-capable workflows when the product needs older chain state.
  • Trace-ready workflows for teams that need to inspect execution paths.

Decision notes:

  • Environment: mainnet. Protocol family: EVM JSON-RPC.
  • Flexible HTTP and WebSocket access is listed for supported app and backend workflows.
  • Archive support is available for historical state or older chain-data queries.
  • Trace support is available for transaction debugging and execution analysis.

A quick connection check usually starts with eth_blockNumber, then moves into the exact methods your wallet, dashboard, bot, indexer, or backend service needs.

Planning the next step:

  • Shared RPC is a practical starting point for integration, prototypes, dashboards, and many app backends.
  • If your product becomes traffic-heavy or operationally sensitive, review the available upgrade path before relying on a single access pattern.

Next steps:

RPC API SERVICE
Reliable RPC endpoints with high rate limits
Powerful RPC request analytics
99.99% uptime
Connect via HTTPS or websocket
Decentralised servers hosted globally
Full archive access at no extra cost

Never Worry about Infrastructure Again

OnFinality takes away the heavy lifting of DevOps so you can build smarter and faster.

Get Started