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.
Read OP Mainnet data, simulate swaps, and send transactions with reliable, high-performance Optimism RPC infrastructure.

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.
Build responsive Optimism apps with preconfirmed state, archive data, and predictable RPC capacity.
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.
在保持稳定性能的同时,扩展高吞吐量的 RPC 工作负载,在您的RPS 套餐内享受无限请求次数,并拥有可预测的月度成本。
Query historical contract state and backfill OP Mainnet events for indexers, DeFi analytics, and accounting. Access archive data through your Optimism RPC endpoint.
Inspect execution with debug_traceTransaction and call traces. Diagnose reverted swaps, follow internal calls, and debug Solidity contracts.
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 toolingBackfill contract events with eth_getLogs and retrieve historical state through archive RPC. Build portfolio analytics, activity feeds, and indexers.
Explore Optimism methodsRead ETH and token balances, estimate gas, and track receipts. Connect wallets and payment backends to OP Mainnet or OP Sepolia.
Get an Optimism RPC endpointRead 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 preconfirmationsTrace 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 APIsGive production applications their own Optimism RPC infrastructure. Dedicated Nodes reserve compute and storage for your workload, with Chainstack managing node deployment and maintenance.
Choose OP Mainnet or OP Sepolia and a node mode to estimate monthly infrastructure costs.
Customer feedback from teams building wallets, trading systems, and security tools across supported networks.
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 endpointRun 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.

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.
Read an ETH balance with eth_getBalance. Use the same JSON-RPC request on OP Mainnet or OP Sepolia.
https://optimism-mainnet.core.chainstack.com/YOUR_ENDPOINT_IDwss://optimism-mainnet.core.chainstack.com/YOUR_ENDPOINT_IDCreate an Optimism node on your chosen network. Copy your HTTPS URL from 访问权限和凭据 并替换为 YOUR_ENDPOINT_ID 在该示例中。
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.
Free developer access and paid plans for Optimism applications, onchain services, and enterprise teams.
Explore Optimism RPC providers, endpoint setup, and production infrastructure guides.

Connect OP Mainnet and OP Sepolia to your application.
阅读文章
Compare endpoints, archive data, pricing, and developer tools.
阅读文章
Compare L2 infrastructure for production applications.
阅读文章
Connect trading strategies to managed RPC infrastructure.
阅读文章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.