Skip to main content
Requests need your GoldRush API key in the Authorization header (Authentication). Point viem, ethers.js, web3.js or raw HTTP at the endpoint below.

Endpoint

Quickstart

It returns "0xa", Optimism’s chain ID (10).

Methods

Optimism uses standard Ethereum JSON-RPC (eth_*, net_*, web3_*). Parameters and return values are the same as on Ethereum, so the Ethereum method reference applies: send the same request to https://rpc.goldrushdata.com/v1/optimism-mainnet. debug_* and trace_* coverage for Optimism isn’t listed in the debug & trace matrix; check with GoldRush support before you rely on them.

JSON-RPC Overview

Product overview and architecture.

Authentication

Header reference and per-library setup.