Optimism RPC Endpoint
Free Optimism (OP Mainnet) RPC endpoint. No API key needed. Low-latency JSON-RPC for the OP Stack rollup with multi-region failover and full eth_ method support.
Connect to OP Mainnet over HTTPS. Optimism is an EVM-equivalent optimistic rollup built on the OP Stack.
Endpoint URL
https://rpc.nodeflare.app/op/v1/{YOUR_KEY}Public endpoint (no API key)
https://rpc.nodeflare.app/op/publicNo API key required. Rate-limited to 2 req/s per IP. Heavy methods (eth_getLogs, trace_*, debug_*) are restricted — sign up for a free key to unlock them.
Quick Test
Terminal
curl https://rpc.nodeflare.app/op/v1/YOUR_KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'Supported Methods
| Category | Methods |
|---|---|
| Chain | eth_chainId → 10, net_version, web3_clientVersion |
| Blocks | eth_blockNumber, eth_getBlockByHash, eth_getBlockByNumber |
| Transactions | eth_sendRawTransaction, eth_getTransactionByHash, eth_getTransactionReceipt, eth_getTransactionCount |
| State | eth_getBalance, eth_getCode, eth_getStorageAt, eth_call |
| Gas | eth_gasPrice, eth_estimateGas, eth_maxPriorityFeePerGas, eth_feeHistory |
| Logs | eth_getLogs, eth_newFilter, eth_getFilterLogs |
| Optimism | optimism_outputAtBlock, rollup_getInfo |
WebSocket
Connect over WebSocket for subscriptions (eth_subscribe) and persistent connections.
Authenticated
wss://rpc.nodeflare.app/op/ws/v1/{YOUR_KEY}Public (no API key, rate-limited)
wss://rpc.nodeflare.app/op/ws/publicJavaScript
const ws = new WebSocket("wss://rpc.nodeflare.app/op/ws/v1/YOUR_KEY");
ws.onopen = () => ws.send(JSON.stringify({
jsonrpc: "2.0", id: 1, method: "eth_subscribe", params: ["newHeads"]
}));Chain Info
| Property | Value |
|---|---|
| Chain ID | 10 |
| Native token | ETH |
| Block time | ~2 seconds |
| L1 | Ethereum |