Skip to Content
ChainsOptimism

Optimism

The Optimism Gateway provides EVM JSON-RPC. Its gas token is ETH.

Supported networks

NetworkChain IDJSON-RPC Host
Mainnet10op-jsonrpc
Sepolia11155420op-sepolia-jsonrpc

Copy the complete Access Point from the dashboard instead of constructing a domain from the Host.

Endpoint-free calls

On an Accelerator hit, you can call eth_blockNumber, eth_getBlockByNumber([hexHeight, false]), and debug_traceBlockByNumber([hexHeight, {"tracer":"callTracer"}]) without an Endpoint. See Accelerator for exact parameters and miss behavior.

Configure complete method access

  1. Create a Gateway for the target Optimism network.
  2. Use Provider sync or manually add an EVM Endpoint on the same network.
  3. Add the Endpoint to the default JSON-RPC route and complete its health check.
  4. Call eth_chainId to verify the network.
curl '<optimism_access_point>' \ -H 'Authorization: Bearer <app_api_key>' \ -H 'Content-Type: application/json' \ --data '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'

Mainnet should return 0xa; Sepolia should return 0xaa37dc.

eth_chainId is not an Accelerator method, so this verification requires a usable Endpoint.

Current limits

  • Single EVM JSON-RPC calls over HTTP are supported; batch, WebSocket, and public gRPC are not.
  • Optimism-specific REST endpoints are not exposed.
  • Optimism-specific methods, trace, and historical state depend on the upstream Endpoint.
  • Mainnet and Sepolia use independent Gateways and routes and never fail over across networks.

See JSON-RPC and Errors and troubleshooting for shared behavior.

Last updated on