Elysium mainnet is live! Get your lightning-fast RPC endpoints now.    Start building
  • Agents
  • Tarifs

Optimism RPC endpoints for DeFi and onchain apps

Read OP Mainnet data, simulate swaps, and send transactions with reliable, high-performance Optimism RPC infrastructure.

Optimism
https://optimism-mainnet.core.chainstack.com/YOUR_ENDPOINT_ID
Créer un point de terminaison
Logo « Stars » du widget de la page d'accueil
get mcp.chainstack.com, deploy Optimism mainnet RPC node and give me the HTTPS endpoint
Essayez dans Codex Claude
ThorFiÉclats d'obusRFOXOdosTradingViewRippleCerclePendleTrust WalletBinanceGoldskyCertiKBlockpourNumioBanditNexoCoinGeckoUniDexVaiVLaunchWorkinmanZapperBitgetTrust WalletAoriArgentKaikoQuantstamp

Fast Optimism RPC, right where you need it

Mondial Node

RPC à équilibrage géographiqueConçu pour la DeFi

Connect to OP Mainnet or OP Sepolia through one geo-balanced endpoint. Read contract state, follow events, and submit transactions through the nearest available region.

Illustration d'un réseau mondial d'node s basées sur la blockchain

Your full development stack for Optimism

Build responsive Optimism apps with preconfirmed state, archive data, and predictable RPC capacity.

Icône « node » illimité

Illimité Node

Faites évoluer vos charges de travail RPC à haut volume tout en bénéficiant de performances constantes, d'un nombre illimité de requêtes au sein de votre niveau « RPS » et de coûts mensuels prévisibles.

25 requêtes / seconde
$ 149 $ /mois
25100250500

Build and scale with reliable Optimism RPC

Logo « Infra Icon 1 » de la page d'accueil

Développer des applications DeFi et de trading

Read liquidity-pool state, simulate swaps with eth_call, and submit signed transactions. Connect trading bots and DeFi frontends with familiar EVM tools.

Explore Optimism tooling
Logo « Infra Icon 2 » de la page d'accueil

Index OP Mainnet events

Backfill contract events with eth_getLogs and retrieve historical state through archive RPC. Build portfolio analytics, activity feeds, and indexers.

Explore Optimism methods
Logo « Infra Icon 3 » de la page d'accueil

Portefeuilles numériques et paiements

Read ETH and token balances, estimate gas, and track receipts. Connect wallets and payment backends to OP Mainnet or OP Sepolia.

Get an Optimism RPC endpoint
Logo « Infra Icon 4 » de la page d'accueil

Read Optimism Subblocks

Read preconfirmed state with pending-tag JSON-RPC calls on Subblocks-enabled endpoints. Update swap quotes and wallet activity before the full block is sealed.

Explore Optimism preconfirmations
Page d'accueil — Logo « Infra Icon 5 »

Debug smart contracts

Trace transaction execution and diagnose reverted calls. Use Optimism debug APIs with Hardhat, Foundry, viem, or ethers.js to investigate application issues.

Explore debug and trace APIs
Plus de 10 milliardsd'appels API quotidienssur Chainstack
Plus de 10 centres de données «Chainstack » à travers le monde
Accès à l'assistance 24 h/24, 7 j/7
Disponibilité supérieure à 99,99 %

Dedicated Optimism RPC for enterprise teams

Give production applications their own Optimism RPC infrastructure. Dedicated Nodes reserve compute and storage for your workload, with Chainstack managing node deployment and maintenance.

Dédié Node

Choose OP Mainnet or OP Sepolia and a node mode to estimate monthly infrastructure costs.

Node type
Chargement du prix…Commencer

Pourquoi les développeurs choisissent Chainstack

Customer feedback from teams building wallets, trading systems, and security tools across supported networks.

Témoignage d'un héros - Logo BgNotre collaboration avec Chainstack nous a permis de réduire nos coûts d'infrastructure de plus de 70 %, tout en relevant des défis complexes en matière de sécurité Web3.Map Shen, responsable de la plateforme chez CertiKTémoignages de clients (s'ouvre dans un nouvel onglet)
4,9/539 avisG2

Read Optimism state before the next block

Read preconfirmed OP Mainnet state through standard JSON-RPC calls. Update swap quotes, balances, and transaction status before the full block is sealed, without changing your EVM tooling.

Get an Optimism endpoint

Self-hosted Optimism RPC on your own infrastructure

Run OP Mainnet or OP Sepolia on infrastructure you control. Deploy OP-Reth and OP-Node with monitoring, automated updates, and self-healing operations through Chainstack Self-Hosted.

Chainstack Self-Hosted node assistant de déploiement
Logo « Card Bg1 » hébergé en propre

Surveillance, alertes et observabilité

Logo « Card Bg2 » hébergé en local

Configurations d'node s adaptées aux besoins

SOC 2ISO

Vos données sont toujours protégées

Optimism Sepolia faucet and test ETH

Fund your wallet. Test on Optimism.

Get free Ethereum Sepolia ETH from the Chainstack faucet, then bridge it to OP Sepolia. Use your Optimism Sepolia RPC endpoint to deploy contracts, simulate swaps, and test wallet or DeFi integrations before production.

The faucet tops up eligible wallets to 0.5 Sepolia ETH every 24 hours. Keep some ETH on Ethereum Sepolia for bridge fees. Follow the bridge guide to fund OP Sepolia; the faucet itself credits Ethereum Sepolia.

Chainstack Illustration d'un « faucet » sur le testnet

Connect to Optimism RPC

Read an ETH balance with eth_getBalance. Use the same JSON-RPC request on OP Mainnet or OP Sepolia.

HTTPS · Requêtes JSON-RPC
https://optimism-mainnet.core.chainstack.com/YOUR_ENDPOINT_ID
WebSocket · abonnements en temps réel
wss://optimism-mainnet.core.chainstack.com/YOUR_ENDPOINT_ID

Create an Optimism node on your chosen network. Copy your HTTPS URL from Accès et identifiants et remplacer YOUR_ENDPOINT_ID dans l'exemple.

Optimism mainnet
curl --request POST \
  --url https://optimism-mainnet.core.chainstack.com/YOUR_ENDPOINT_ID \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getBalance",
  "params": [
    "0x38545c4b331D8BFb3bee94C62D77a6735b5eF8c0",
    "latest"
  ]
}'

Le result correspond au solde en ETH exprimé en wei sous forme hexadécimale. Un ETH équivaut à 10^18 wei. This read does not send a transaction or spend gas.

Consulter la référence des méthodes (s'ouvre dans un nouvel onglet)

Optimism RPC pricing

Free developer access and paid plans for Optimism applications, onchain services, and enterprise teams.

Des formules économiques adaptées à chaque type de charge de travail

À partir de40$/moisavec un abonnement annuel
Découvrez les formules payantes
De 20M demandes, y compris les demandes mensuellesComparer et convertir
  • Un débit plus élevé et des limites d'node s plus importantes

Toutes les fonctionnalités destinées aux développeurs, ainsi que :

  • Données d'archives Growth+
  • Extensions Growth+
  • Nodes Pro+ dédié
  • Authentification unique Pro+
  • Accès basé sur les rôles Business+
  • Nombre illimité d'utilisateurs Business+
Voir toutes les fonctionnalités

Les modules complémentaires et l'infrastructure dédiée d'Node sont facturés séparément.

Logo des utilisateursUne assistance exceptionnelle pour toutes les formules payantes
Pour les équipes qualifiées

Vous dépensez plus de 2 000 $ par mois en infrastructure RPC ?

Économisez plus de 50 % sur notre formule haut de gamme « Pay-as-you-go »

TelegramDiscuter sur Telegram (s'ouvre dans un nouvel onglet)
Foire aux questions
What is Optimism RPC?

Optimism RPC lets applications read OP Mainnet blockchain data and submit signed transactions using Ethereum-compatible JSON-RPC. Use it to read balances, call smart contracts, retrieve logs, and track transaction receipts. Chainstack supports OP Mainnet and OP Sepolia. See the Optimism API reference.

How do I get a free Optimism RPC endpoint?

Create a free Chainstack account, create a project, and deploy an Optimism Global Node on mainnet or Sepolia. Copy your HTTPS or WebSocket URL from Access and credentials. The Developer plan includes 3 million request units per month, up to 25 requests per second, and one node. No credit card is required.

What are the Optimism mainnet and Sepolia RPC URLs?

A Chainstack OP Mainnet HTTPS endpoint follows https://optimism-mainnet.core.chainstack.com/YOUR_ENDPOINT_ID. OP Sepolia uses https://optimism-sepolia.core.chainstack.com/YOUR_ENDPOINT_ID. Copy the complete authenticated URL from your node and replace the example endpoint ID. See Optimism tooling.

What are the Optimism and OP Sepolia chain IDs?

OP Mainnet uses chain ID 10 (0xa). OP Sepolia uses 11155420 (0xaa37dc). Both use ETH for gas; OP is the governance token, not the gas currency. See the official Optimism network information.

Can I use MetaMask, ethers.js, viem, and WebSockets with Optimism?

Yes. Optimism supports Ethereum-compatible tooling, including MetaMask, ethers.js, viem, web3.py, Hardhat, and Foundry. Use your authenticated HTTPS URL for requests and the corresponding wss:// URL for subscriptions such as new blocks and contract logs. Follow the Optimism tooling guide.

How do I read an ETH balance through Optimism RPC?

Appeler eth_getBalance with an EVM address and a block tag such as latest. The result is a hexadecimal ETH balance in wei, with 10^18 wei per ETH. Token balances require a contract call rather than eth_getBalance. Voir le Optimism eth_getBalance reference.

Does Optimism support Subblocks and Flashblocks?

Optimism Subblocks, formerly Flashblocks, expose preconfirmed state through standard JSON-RPC methods using the pending block tag on compatible endpoints. Applications can read execution updates before the full block is sealed. Preconfirmation is not Ethereum settlement or finality. See the Optimism Subblocks documentation et Chainstack’s pending-state guide.

Does Chainstack provide Optimism archive data?

Yes. Chainstack supports archive access for OP Mainnet and OP Sepolia. Use it to query historical balances, contract storage, and past state for analytics and backfills. Archive access is available from the Growth plan, and archive requests consume 2 request units. See supported networks and modes and request-unit rules.

Can I trace and debug Optimism transactions?

Yes. Deploy an Optimism Global Node with debug and trace APIs enabled to inspect execution using methods such as debug_traceTransaction. Use traces to diagnose reverted swaps, investigate internal calls, and debug smart contracts. Check the Optimism debug and trace requirements.

Can one Optimism RPC endpoint access every OP Stack chain?

No. OP Mainnet, Base, and other OP Stack chains have separate chain IDs, state, and RPC endpoints. An Optimism endpoint accesses its selected Optimism network; it does not automatically provide Base or another Superchain network’s data. See the supported Chainstack networks.

Can I run a self-hosted Optimism node?

Yes. Chainstack Self-Hosted supports OP Mainnet and OP Sepolia using OP-Reth and OP-Node. Deploy on infrastructure you control with monitoring, automated updates, and self-healing operations. The OP Stack setup also requires Ethereum L1 RPC and Beacon API endpoints. Check supported deployments and the installation guide.

How much does Optimism RPC cost on Chainstack?

Start with the free Developer plan. Paid plans start at $40 per month with annual billing. Unlimited Node adds predictable flat-fee capacity from the Growth plan. Dedicated Nodes start from Pro, with infrastructure billed separately. Compare plan features and current Optimism Dedicated Node configurations.

Optimism RPC API: URLs, chain IDs, and OP Sepolia

Connect to OP Mainnet at https://optimism-mainnet.core.chainstack.com/YOUR_ENDPOINT_ID or OP Sepolia at https://optimism-sepolia.core.chainstack.com/YOUR_ENDPOINT_ID. Copy your authenticated URL from Accès et identifiants. OP Mainnet uses chain ID 10, and OP Sepolia uses 11155420. Both use ETH for gas. See the Optimism tooling guide.

Utilisation eth_getBalance pour les soldes en ETH, eth_call pour les lectures de contrats, eth_getLogs pour les événements, et eth_sendRawTransaction for signed transaction submission. Connect over WebSocket for block and log subscriptions. Optimism Subblocks, formerly Flashblocks, expose preconfirmed state through pending-tag calls on compatible endpoints before a full block is sealed. Use the block tag appropriate to your application’s finality requirements. See the Optimism API reference et preconfirmed-state guide.