Chainstack GEN 2.0 is live: lower latency for Solana, Ethereum, Base, and every chain on Global Nodes. See what’s new
  • 代理
  • 定价

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
创建端点
主页小工具“Stars”徽标
get mcp.chainstack.com, deploy Optimism mainnet RPC node and give me the HTTPS endpoint
ThorFiShrapnelRFOXOdosTradingViewRippleCircle彭德尔Trust Wallet币安GoldskyCertiKBlockpourNumioBanditNexoCoinGeckoUniDexVaiVLaunchWorkinmanZapperBitgetTrust WalletAori银色KaikoQuantstamp

Fast Optimism RPC, right where you need it

全球Node

Geo-balanced RPCBuilt for 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.

全球区块链node 网络示意图

Your full development stack for Optimism

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

Preconfirmation icon

Optimism Subblocks

Read preconfirmed OP Mainnet state with Subblocks, formerly Flashblocks. Use pending-tag RPC calls to update swaps, balances, and transaction status before the full block is sealed.

Included
无限node 图标

无限Node

Scale high-volume RPC workloads with consistent performance, unlimited requests within your RPS tier, and predictable monthly costs.

25 requests / second
$ 149 /mo
25100250500
Svg+xml;base64,phn2zyb3awr0ad0imjqiighlawdodd0imjqiihzpzxdcb3g9ijagmcayncayncigzmlsbd0ibm9uzsigeg1sbnm9imh0dha6ly93d3cudzmub3jnlziwmdavc3znij4kphbhdgggzd0ittiwlji1idyunzvimtiumjuwm0w5ljy0oty5idquoem5ljm4oty3idqunja1otkgos4wnzqxmsa0ljuwmdggoc43ndk2osa0ljvimy43numzljm1mje4idqunsayljk3mdy0idqunju4mdqgmi42odkznca0ljkzotm0qziunda4mdqgns4ymja2ncaylji1iduunjaymtggmi4ynsa2vje4ljc1qziumjugmtkumtq3ocayljqwoda0ide5ljuyotqgmi42odkzncaxos44mta3qziuotcwnjqgmjaumdkyidmumzuymtggmjaumjugmy43nsaymc4ynugymc4zmzm0qziwljcwosaymc4yndk1idixlja2osaymc4xmdaxidixljmzndygmtkuodm0nkmyms42mdaxide5lju2osayms43ndk1ide5ljiwosayms43nsaxoc44mzm0vjgumjvdmjeunzugny44ntixocayms41otigny40nza2ncayms4zmta3idcumtg5mzrdmjeumdi5nca2ljkwoda0idiwljy0nzggni43nsaymc4ynsa2ljc1wk0ymc4ynsaxoc43nugzljc1vjzioc43ndk2ouwxms41nsa4ljfdmteunjc5oca4lje5nzm3idexljgznzcgoc4ynsaxmia4lji1sdiwlji1vje4ljc1wk0xnsaxmy41qze1idezljy5odkgmtquotixidezljg4otcgmtqunzgwmyaxnc4wmzazqze0ljyzotcgmtqumtcxide0ljq0odkgmtqumjugmtqumjugmtqumjvios43num5lju1mta5ide0lji1idkumzywmzigmtqumtcxidkumje5njcgmtqumdmwm0m5lja3otayidezljg4otcgosaxmy42otg5idkgmtmunum5idezljmwmtegos4wnzkwmiaxmy4xmtazidkumje5njcgmtiuoty5n0m5ljm2mdmyideyljgyosa5lju1mta5ideyljc1idkunzugmtiunzvimtqumjvdmtqundq4osaxmi43nsaxnc42mzk3ideyljgyosaxnc43odazideyljk2otddmtquotixidezljexmdmgmtugmtmumzaxmsaxnsaxmy41wiigzmlsbd0iizczoda4qyivpgo8l3n2zz4k logo

Optimism archive data

Query historical contract state and backfill OP Mainnet events for indexers, DeFi analytics, and accounting. Access archive data through your Optimism RPC endpoint.

Included
Svg+xml;base64,phn2zyb3awr0ad0imjqiighlawdodd0imjqiihzpzxdcb3g9ijagmcayncayncigzmlsbd0ibm9uzsigeg1sbnm9imh0dha6ly93d3cudzmub3jnlziwmdavc3znij4kphbhdgggzd0ittyundc5nzcgoc44mjy1ouwyljy3mty1ideytdyundc5nzcgmtuumtcznum2lju1nzyzide1ljizntggni42mjiynyaxns4zmtmgni42njk5miaxns40mda2qzyunze3ntcgmtuundg4mia2ljc0nzi3ide1lju4ndugni43ntcyocaxns42odm3qzyunzy3mjkgmtuunzgyosa2ljc1nzqxide1ljg4mzegni43mjgymiaxns45nzg1qzyunjk5mdmgmtyumdczosa2ljy1mtexide2lje2mjqgni41odcynyaxni4ymzkxqzyuntizndmgmtyumze1nya2ljq0ndk1ide2ljm3odggni4znty0myaxni40mjq3qzyumjy3osaxni40nza2idyumtcxmtegmtyundk4nca2lja3mtcxide2ljuwnjvdns45nzizide2ljuxndygns44nziyosaxni41mdi3iduunzc3ntigmtyundcxn0m1ljy4mjc1ide2ljq0mdygns41otuxmyaxni4zotegns41mtk3nyaxni4zmju2tdeumde5nzggmtiuntc1nkmwljkzntmznyaxmi41mduzidauody3ndazideyljqxnzigmc44mja3odqgmtiumze3nkmwljc3nde2nsaxmi4ymtgxidaunzugmtiumta5nsawljc1idexljk5otzdmc43nsaxms44odk2idaunzc0mty1idexljc4msawljgymdc4ncaxms42ode1qzauody3ndazidexlju4mtkgmc45mzuzmzcgmteundkzocaxljaxotc4idexljqymzvmns41mtk3nya3ljy3mzq2qzuunjcynjkgny41ndyxnia1ljg2otkxidcundg0odegni4wnjgwnsa3ljuwmjkyqzyumjy2mia3ljuymtazidyundq5mdmgny42mtcxmsa2lju3njm0idcunzcwmdjdni43mdm2nca3ljkymjk0idyunzy0otkgoc4xmjaxnia2ljc0njg4idgumze4m0m2ljcyodc3idgunte2ndugni42mzi2osa4ljy5oti4idyundc5nzcgoc44mjy1ovpnmjiuotc5ocaxms40mjm1tde4ljq3otggny42nzm0nkmxoc40mdqxidcunjewndmgmtgumze2nya3lju2mjkyide4ljiymjygny41mzm2nkmxoc4xmjg1idcunta0ncaxoc4wmjk2idcundkzotygmtcuotmxnsa3ljuwmjkyqze3ljgzmzqgny41mte4osaxny43mzggny41ndawosaxny42nta4idcuntg1otjdmtcuntyznia3ljyzmtc1ide3ljq4njigny42otqzmsaxny40mjmyidcunzcwmdjdmtcumjk1osa3ljkymjk0ide3ljizndygoc4xmjaxniaxny4ynti3idgumze4m0mxny4ynza4idgunte2ndugmtcumzy2osa4ljy5oti4ide3ljuxotggoc44mjy1ouwyms4zmjc5ideytde3ljuxotggmtuumtcznumxny40nde5ide1ljizntggmtcumzc3myaxns4zmtmgmtcumzi5niaxns40mda2qze3lji4miaxns40odgyide3lji1mjmgmtuuntg0nsaxny4yndizide1ljy4mzddmtcumjmymyaxns43odi5ide3lji0mjegmtuuodgzmsaxny4ynzezide1ljk3odvdmtcumzawnsaxni4wnzm5ide3ljm0odqgmtyumtyyncaxny40mtizide2ljizotfdmtcundc2msaxni4zmtu3ide3lju1ndygmtyumzc4ocaxny42ndmxide2ljqyndddmtcunzmxniaxni40nza2ide3ljgyodqgmtyundk4ncaxny45mjc4ide2ljuwnjvdmtgumdi3miaxni41mtq2ide4ljeynzmgmtyuntaynyaxoc4ymjigmtyundcxn0mxoc4zmty4ide2ljq0mdygmtgunda0ncaxni4zotegmtgundc5ocaxni4zmju2tdiyljk3otggmtiuntc1nkmymy4wnjqyideyljuwntmgmjmumtmymsaxmi40mtcyidizlje3odggmtiumze3nkmymy4ymju0ideyljixodegmjmumjq5nsaxmi4xmdk1idizlji0otugmteuotk5nkmymy4yndk1idexljg4otygmjmumji1ncaxms43odegmjmumtc4ocaxms42ode1qzizljezmjegmteuntgxosaymy4wnjqyidexljq5mzggmjiuotc5ocaxms40mjm1wk0xns4yntu3idmumdq1mdjdmtuumtyzmsazljaxmtqxide1lja2ndggmi45otyzniaxnc45njy0idmumdawnzrdmtquody4idmumda1mtigmtqunzcxnsazljayodgzide0ljy4mjigmy4wnza1m0mxnc41otmgmy4xmtiymyaxnc41mti5idmumtcxmsaxnc40ndy0idmumjqznzddmtqumzc5osazljmxnjq1ide0ljmyodqgmy40mde1ide0lji5ndggmy40otqwouw4lji5ndc3ide5ljk5ndfdoc4ynjewmiaymc4wody3idgumjq1odygmjaumtg1msa4lji1mde2idiwlji4mzzdoc4yntq0nyaymc4zodixidgumjc4mtugmjaundc4oca4ljmxotg2idiwlju2odfdoc4znje1nyaymc42ntc1idgundiwndkgmjaunzm3nya4ljq5mzi0idiwljgwndndoc41nju5osaymc44nza4idgunjuxmtqgmjauotiynca4ljc0mzg0idiwljk1nkm4ljgyniaymc45oduyidguoteyntcgmjeumdawmsa4ljk5otc3idixqzkumtuzocaymsa5ljmwnda5idiwljk1mjygos40mzaymiaymc44njqyqzkuntu2mzugmjaunzc1oca5ljy1mjixidiwljy1mdcgos43mdq3nyaymc41mdzmmtuunza0oca0ljawntk2qze1ljczodqgmy45mtmzocaxns43ntm0idmuode1mdggmtuunzq5msazljcxnjy5qze1ljc0ndcgmy42mtgyosaxns43mjegmy41mje3miaxns42nzkzidmundmyndldmtuunjm3niazljm0mzi1ide1lju3odcgmy4ynjmxmsaxns41mdygmy4xoty2m0mxns40mzm0idmumtmwmtugmtuumzq4myazlja3odyzide1lji1ntcgmy4wnduwmloiigzpbgw9iim3mzgwoemilz4kpc9zdmc+cg== logo

调试与跟踪API

Inspect execution with debug_traceTransaction and call traces. Diagnose reverted swaps, follow internal calls, and debug Solidity contracts.

Included

Build and scale with reliable Optimism RPC

首页 基础设施图标 1 徽标

Build DeFi and trading apps

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
主页 Infra Icon 2 徽标

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
主页 Infra Icon 3 徽标

Power wallets and payments

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
主页 Infra Icon 4 徽标

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
主页 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
10B+Daily API calls across Chainstack
10+Chainstack data centers worldwide
全天候支持服务
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.

专属Node

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

Node type
Loading price…Get started

适用于符合条件的团队

每月在 RPC 基础设施上的支出超过 1,000 美元?

Save over 50% on our elite pay as you go plan

Telegram在Telegram上聊天 (opens in a new tab)

开发者为何选择Chainstack

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

英雄见证 Bg 标志Chainstack’s robust infrastructure has significantly enhanced our ability to secure Web3 environments effectively.Lior Betzalel, VP R&D, Hypernative客户故事 (opens in a new tab)
英雄见证 Bg 标志The Unlimited Node flat-fee model gives us cost predictability, and the performance is rock-solidOleksandr Holofaiev, COO, Peanut.trade客户故事 (opens in a new tab)
英雄见证 Bg 标志Working with Chainstack helped us cut our infrastructure costs by over 70%, all while tackling intricate challenges in Web3 security.Map Shen, Head of Platform, CertiK客户故事 (opens in a new tab)

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 deployment wizard
自主托管的 Card Bg1 徽标

监控、警报与可观测性

自主托管的 Card Bg2 徽标

适配的node 配置

SOC 2ISO

您的数据始终受到保护

Connect to Optimism RPC

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

HTTPS · JSON-RPC requests
https://optimism-mainnet.core.chainstack.com/YOUR_ENDPOINT_ID
WebSocket · live subscriptions
wss://optimism-mainnet.core.chainstack.com/YOUR_ENDPOINT_ID

Create an Optimism node on your chosen network. Copy your HTTPS URL from Access and credentials and replace YOUR_ENDPOINT_ID in the example.

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"
  ]
}'

该 result is a hexadecimal ETH balance in wei. One ETH equals 10^18 wei. This read does not send a transaction or spend gas.

View method reference (opens in a new tab)

Optimism RPC pricing

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

适合各种工作负载的高性价比方案

Starting from$40/moon annual
Explore paid plans
From 20M requests included monthly比较与转换
  • Higher throughput and larger node allowances

All Developer features, plus:

  • Archive data Growth+
  • Add-ons Growth+
  • Dedicated Nodes Pro+
  • Single sign-on Pro+
  • Role-based access Business+
  • Unlimited users Business+
查看所有功能

Add-ons and Dedicated Node infrastructure are billed separately.

Users logoExceptional support on every paid plan
常见问题解答
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?

Call 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. See the 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 以及 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 Access and credentials. OP Mainnet uses chain ID 10, and OP Sepolia uses 11155420. Both use ETH for gas. See the Optimism tooling guide.

Use eth_getBalance for ETH balances, eth_call for contract reads, eth_getLogs for events, and 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 以及 preconfirmed-state guide.