Networks and Public RPC Endpoints


Note

Some API calls, such as the those in the personal namespace (opens new window) make no sense in a shared environment. Such RPCs are either totally unsupported, or will return nonsensical values.

# Optimism (mainnet)

Parameter Value
Network Name Optimism
Description Mainnet
Chain ID 10
Explorer https://optimistic.etherscan.io (opens new window)
HTTP Endpoint https://mainnet.optimism.io Not for production systems. See the list of available RPC endpoints below
WebSocket Endpoint1 wss://ws-mainnet.optimism.io
L1 Contract Addresses link (opens new window)
L2 Contract Addresses link (opens new window)
chainid.link https://chainid.link/?network=optimism (opens new window)

(1) The WebSocket endpoint is only supported for the two operations that cannot be provided on an HTTP endpoint: eth_subscribe and eth_unsubscribe. If you need a general purpose WebSocket endpoint, get one from a service provider.

# RPC endpoints

Please set up a private RPC endpoint with any of these poviders:

We also support and maintain the following public RPC endpoints. However, we highly encourage you to set up a private RPC endpoint with any of the above mentioned providers instead. These public endpoints should not be used in production systems.

Pocket Network (opens new window) also maintains a decentralized public RPC endpoint.

  • HTTP endpoint: https://optimism-mainnet.gateway.pokt.network/v1/lb/62eb567f0fd618003965da18

Blast (opens new window) also maintains public RPC endpoints. An important limitation is that public endpoint does not support the eth_getLogs method (you can use it with their free project-specific endpoints).

# Optimism Goerli

Purpose

This is our new test network.

Parameter Value
Network Name Optimism Goerli
Description Testnet (public)
Chain ID 420
Explorer https://blockscout.com/optimism/goerli (opens new window)
HTTP Endpoint https://goerli.optimism.io
WebSocket Endpoint wss://ws-goerli.optimism.io
L1 Contract Addresses link (opens new window)
L2 Contract Addresses link (opens new window)
Chainlist link https://chainlist.org/chain/420 (opens new window)

# RPC endpoints

We have several providers that support Optimism Goerli.

# Test ETH

The Optimism Faucet (opens new window) now provides Optimism Goerli ETH. Alternatively, if you already have Goerli ETH, you can bridge it (opens new window).

# Optimism Kovan (old testnet)

Deprecation notice

We are transitioning our test network to Goerli. Optimism Kovan end of life is October 5th, 2022, be sure to migrate everything you need before then.

Parameter Value
Network Name Optimism Kovan
Description Testnet (public)
Chain ID 69
Explorer https://kovan-optimistic.etherscan.io (opens new window)
HTTP Endpoint https://kovan.optimism.io If you are going to be sending a lot of requests please set up your own private RPC endpoint
WebSocket Endpoint1 wss://ws-kovan.optimism.io If you are going to be sending a lot of requests please set up your own private RPC endpoint
L1 Contract Addresses link (opens new window)
L2 Contract Addresses link (opens new window)
chainid.link https://chainid.link/?network=optimism-kovan (opens new window)

(1) The WebSocket endpoint is only supported for the two operations that cannot be provided on an HTTP endpoint: eth_subscribe and eth_unsubscribe. If you need a general purpose WebSocket endpoint, get one from a service provider.

# RPC endpoints

We have several providers that support Optimism Goerli.

We also have the following public endpoints. However if you expect to be sending a high volume of requests, please use one of the other available providers above.