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.
Scale high-volume RPC workloads with consistent performance, unlimited requests within your RPS tier, and predictable monthly costs.
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.

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 Access and credentials and replace YOUR_ENDPOINT_ID in the example.
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.
Free developer access and paid plans for Optimism applications, onchain services, and enterprise teams.
All Developer features, plus:
Add-ons and Dedicated Node infrastructure are billed separately.
Explore Optimism RPC providers, endpoint setup, and production infrastructure guides.

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