Skip to Content
ChainsOptimism
View Markdown source

Optimism

Optimism is an EVM rollup in the Gateway catalog with ETH as its gas token. Both of its networks are reachable over EVM JSON-RPC through a Gateway Access Point.

Networks and hosts

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

Optimism Sepolia (11155420) and Base Sepolia (84532) are distinct networks with distinct Gateways, so confirm the chain ID before pointing a client at an Access Point.

Provider coverage

ProviderMainnetSepoliaGenerated URL form
AlchemyYesYeshttps://<network-subdomain>.g.alchemy.com/v2
QuickNodeYesYesThe URL QuickNode already issued for the Endpoint
ChainstackYesYesThe node’s HTTPS endpoint
dRPCYesYeshttps://lb.drpc.live/<network>/
TenderlyYesYeshttps://<network-slug>.gateway.tenderly.co

Every one of these applies its credential as a path segment, so treat the effective Endpoint URL as a secret.

Reads without an Endpoint

The shared cache answers eth_blockNumber, eth_getBlockByNumber with ["latest", false] or an explicit hexadecimal height and false, and debug_traceBlockByNumber with the callTracer configuration. Other parameter variants and writes go to the Route. See Endpoint-free RPC for the exact forms and cache behavior.

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 returns 0xa; Sepolia returns 0xaa37dc.

Coverage boundary

One JSON-RPC 2.0 object per HTTP POST. Optimism-specific namespaces, trace output, and historical state depend on the upstream node’s software and plan.

See Routing and reliability for the routing model and JSON-RPC for request format.

Last updated on