Skip to main content

Don't have an RPC Node yet?

Start using RPC Nodes in your project today.

Get your free RPC Node
Version: 2.2

Optimism JSON RPC API

Introduction

Optimism is a Layer 2 scaling solution built on Ethereum that uses optimistic rollups to bundle transactions, providing faster and cheaper transactions while retaining the security of Ethereum. Optimism focuses on scalability, low gas fees, and maintaining compatibility with the Ethereum ecosystem, making it an ideal platform for decentralized applications (dApps), decentralized finance (DeFi), and NFTs.

Supported Networks

The Optimism RPC API is available for the following networks:

  1. Optimism Mainnet
  2. Optimism Sepolia Testnet

Network Details

NetworkChain IDEVM ChainRPC URLs
Optimism Mainnet0xa (10)EvmChain.OPTIMISMhttps://site1.moralis-nodes.com/optimism/
https://site2.moralis-nodes.com/optimism/
Optimism Sepolia0xaa37dc (11155420)EvmChain.OPTIMISM_SEPOLIAhttps://site1.moralis-nodes.com/optimism-sepolia/
https://site2.moralis-nodes.com/optimism-sepolia/

Supported RPC Methods

Supported Extended RPC Methods

Network Support Notice

The Extended RPC APIs are only supported on the Optimism Mainnet.