Ir al contenido principal

Optimism RPC

With Quicknode, you get access to our global Optimism network which always routes your API requests to the nearest available location, ensuring low latency and the fastest speeds.

What is Optimism?

Optimism is a Layer 2 scaling solution for Ethereum that uses optimistic rollup technology to increase throughput while maintaining Ethereum's security. Optimism processes transactions off-chain and posts compressed transaction data to Ethereum mainnet, inheriting its security guarantees through a 7-day fraud proof window.

Optimism implements the Optimism Virtual Machine (OVM), which is EVM-equivalent at the bytecode level. The network uses sequencers to order transactions and produce blocks with 2-second block times. The network supports cross-chain messaging through its native bridge contracts, allowing assets and data to move between L1 and L2. Optimism uses ETH for gas fees and implements the same account model and transaction types as Ethereum.

Interacting with Optimism

The Optimism JSON-RPC API extends the standard Ethereum JSON-RPC interface with L2-specific functionality. Since Optimism maintains EVM equivalence, developers can use existing Ethereum tools and libraries without modification.

Con esta API, puedes:

  • Ejecutar todos los métodos JSON-RPC estándar de Ethereum (eth_call, eth_sendTransaction, eth_getBalance)
  • Access Optimism-specific methods for L2 operations and gas estimation
  • Query L1 to L2 message status and cross-chain transaction receipts
  • Retrieve L2 block and transaction data including L1 batch information
  • Suscríbete a eventos en tiempo real a través de conexiones WebSocket

Puedes acceder a la API de las siguientes formas:

  • Running a local Optimism node (op-node and op-geth)
  • Using a hosted provider such as a Quicknode Optimism endpoint, which provides instant access to mainnet and testnet with archive data support

Redes compatibles

Quicknode provides access to the following Optimism networks:

Red principal
Tipo:Producción
ID de la cadena:
10
HTTP:
WSS:
Archivo:
Poda:Ninguna
Sepolia
Tipo:Red de pruebas
ID de la cadena:
11155420
HTTP:
WSS:
Archivo:
Poda:Ninguna
Comparte este documento