Connect to OP Sepolia over HTTPS for standard EVM JSON-RPC reads, transaction submission, contract calls, and historical data queries.
https://optimism-sepolia.api.onfinality.io/publicUse the persistent WebSocket endpoint for subscriptions and event-driven applications that need live blockchain activity.
wss://optimism-sepolia.api.onfinality.io/public-wsConnect to OP Mainnet through persistent WebSocket RPC for real-time blockchain applications. Subscribe to new blocks, logs, and onchain events without continuously polling an HTTP endpoint.
eth_subscribe
eth_unsubscribe
eth_newFilter
eth_newBlockFilter
eth_newPendingTransactionFilter
eth_getFilterChangesThe Optimism Foundation public RPC does not support standard WebSocket connections. OnFinality provides both HTTPS and WebSocket access for applications that need real-time OP Mainnet data.
Query historical OP Mainnet state through OnFinality's Archive-enabled Optimism RPC infrastructure. Access historical blocks, balances, smart contract state, transactions, receipts, and event logs without operating your own archive node.
Use eth_getLogs to retrieve historical contract events for DeFi analytics, accounting, transaction analysis, indexers, explorers, and audit tools.
eth_getLogsInspect OP Mainnet transaction execution, debug failed contract calls, analyse internal transactions, and build advanced analytics using supported Trace and Debug APIs.
trace_block
trace_call
trace_callMany
trace_filter
trace_replayTransaction
trace_replayBlockTransactionsdebug_traceTransaction
debug_traceCall
debug_traceBlockByHash
debug_traceBlockByNumberTrace and Debug APIs are available on supported paid plans.
Use EVM-compatible JSON-RPC methods to read OP Mainnet state, query smart contracts, submit transactions, retrieve logs, subscribe to events, and inspect execution.
eth_blockNumber
eth_chainId
eth_getBlockByHash
eth_getBlockByNumber
eth_getBlockReceiptseth_getBalance
eth_call
eth_estimateGas
eth_getCode
eth_getStorageAteth_sendRawTransaction
eth_getTransactionByHash
eth_getTransactionReceipt
eth_getTransactionCounteth_getLogs
eth_subscribe
eth_getFilterChangestrace_block
trace_call
trace_filter
debug_traceTransaction
debug_traceCallUse standard EVM RPC methods such as eth_estimateGas, eth_gasPrice, and eth_feeHistory for OP Sepolia transaction workflows. Applications that need total transaction cost estimates should also account for the OP Stack L1 data fee.
eth_estimateGas
eth_gasPrice
eth_feeHistoryQuery contract state, pools, balances, transactions and events while submitting transactions through EVM-compatible OP Sepolia RPC.
Query ETH and token balances, estimate transaction costs, submit signed transactions, retrieve receipts, and monitor deposits and withdrawals.
Use WebSocket subscriptions to monitor new blocks, contract logs and live OP Mainnet activity without continuous HTTP polling.
Combine Archive access, eth_getLogs, transactions and receipts to build historical datasets, dashboards and blockchain analytics.
Inspect transaction execution using Trace and Debug APIs for contract development, incident investigation and advanced analytics.
| OP Mainnet | OP Sepolia | |
|---|---|---|
| Chain ID | 10 | 11155420 |
| Currency | ETH | ETH |
| HTTPS | Supported | Supported |
| WebSocket | Supported | Supported |
| Environment | Production | Development / QA |
Move from shared Optimism RPC access to dedicated OP Mainnet nodes when your workload needs isolated resources, sustained throughput, intensive Archive or Trace queries, or greater operational control.
OnFinality takes away the heavy lifting of DevOps so you can build smarter and faster.
Get Started