Black Friday ~40% off Growth and Pro annual plans See offers
  • 代理
  • 定价

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
ThorFi弹片RFOX奥多斯TradingView瑞波圆彭德尔Trust Wallet币安GoldskyCertiKBlockpourNumio强盗NexoCoinGeckoUniDexVaiVLaunchWorkinmanZapperBitgetTrust WalletAori银色KaikoQuantstamp

Fast Optimism RPC, right where you need it

全球Node

地理均衡的 RPC专为 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.

包含
无限node 图标

无限Node

在保持稳定性能的同时,扩展高吞吐量的 RPC 工作负载,在您的RPS 套餐内享受无限请求次数,并拥有可预测的月度成本。

25 请求/秒
$ 149 /月
25100250500

Build and scale with reliable Optimism RPC

首页 基础设施图标 1 徽标

构建 DeFi 和交易应用

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 徽标

智能钱包与支付

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
每日API调用量超过10B+Chainstack
全球10余个Chainstack 数据中心
全天候支持服务
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 类型
正在加载价格……开始使用

开发者为何选择Chainstack

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

英雄见证 Bg 标志与Chainstack 的合作不仅帮助我们将基础设施成本削减了70%以上,同时还成功应对了Web3安全领域中的复杂挑战。Map Shen,CertiK 平台负责人客户故事 (在新标签页中打开)
4.9/5简体中文(大陆)39 条评论G2

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 部署向导
自主托管的 Card Bg1 徽标

监控、警报与可观测性

自主托管的 Card Bg2 徽标

适配的node 配置

SOC 2ISO

您的数据始终受到保护

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 测试网水龙头示意图

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 请求
https://optimism-mainnet.core.chainstack.com/YOUR_ENDPOINT_ID
WebSocket · 实时订阅
wss://optimism-mainnet.core.chainstack.com/YOUR_ENDPOINT_ID

Create an Optimism node on your chosen network. Copy your HTTPS URL from 访问权限和凭据 并替换为 YOUR_ENDPOINT_ID 在该示例中。

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 是以wei为单位的ETH十六进制余额。1 ETH等于 10^18 wei. This read does not send a transaction or spend gas.

查看方法参考 (在新标签页中打开)

Optimism RPC pricing

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

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

起价每月40美元起(按年付费)
了解付费套餐
来源: 20M 请求包括每月比较与转换
  • 更高的吞吐量和更大的node 配额

所有开发者功能,此外还包括:

  • 归档数据Growth+
  • 扩展程序Growth+
  • 专用Nodes Pro+
  • 单点登录Pro+
  • 基于角色的访问控制Business+
  • 用户数量不限Business+
查看所有功能

附加组件和专用的Node 基础设施将分别计费。

用户徽标每种付费套餐均提供卓越的支持服务
适用于符合条件的团队

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

我们的精英级按需付费套餐可为您节省超过50%的费用

Telegram在Telegram上聊天 (在新标签页中打开)
常见问题解答
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?

致电 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. 参见 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 访问权限和凭据. OP Mainnet uses chain ID 10, and OP Sepolia uses 11155420. 两者都使用 ETH 作为 gas 费用。请参阅 Optimism tooling guide.

使用 eth_getBalance 对于 ETH 余额, eth_call 关于合同的阅读, 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.