Free API for OP Mainnet
Explorer-grade API access for Optimism developers. Free tier included. Multichain-ready.
Optimism API Access with Blockscout
Optimism is one of Ethereum’s flagship L2s and the foundation of the OP Superchain — a growing network of interoperable chains built on the OP Stack. With the Ethereum Economic Zone framework announced at EthCC and L2Beat tracking 149 scaling projects, Optimism sits at the center of Ethereum’s scaling architecture. Its governance model, RetroPGF funding rounds, and deep developer community make it one of the most active ecosystems in crypto. Etherscan lists OP Mainnet as paid-only for API access. Blockscout provides full API access on all tiers, including a generous free plan. OP Mainnet Chain ID:10 Explorer: optimism.blockscout.com
PRO API Base:
https://api.blockscout.com (use chain_id=10) API Docs: optimism.blockscout.com/api-docs
Quick Start
PRO API Routes for Optimism
All routes use OP Mainnet’s chain ID (10):
JSON RPC v2 (Etherscan-compatible):
Available Endpoints
Etherscan-Compatible Modules
All standard modules work identically to Etherscan’s interface:- Account — Balances, transaction lists, token transfers, internal transactions, ERC-20/721/1155 activity (plus Blockscout extras:
eth_get_balance,pendingtxlist,tokenbalance,tokenlist) - Contract — ABI, source code, verification (plus:
listcontracts,getcontractcreation, Vyper & Sourcify verification) - Transaction — Status checks (plus:
gettxinfo) - Logs — Event logs with filtering by address, topics, block range
- Token — Token metadata, holders
- Stats — Supply, chain statistics, coin price
- Block — Block rewards, countdown, block number by time
- Gas Tracker — Gas oracle, gas estimates
REST API
Blockscout’s native REST API provides enriched metadata, decoded transaction data, NFT details, smart contract read/write, and chain health monitoring. → Full REST API ReferenceOptimism API Pricing
| Tier | Rate Limit | Credits | Price |
|---|---|---|---|
| Free | 5 RPS | 100K/day | $0 |
| Builder | 15 RPS | 100M/mo | $49/mo |
| Pro | 30 RPS | 500M/mo | $199/mo |
| Business | 50 RPS | 3B/mo | $999/mo |
| Enterprise | Custom | Custom | Contact us |
chain_id parameter — no additional setup.
Migrating from Etherscan’s Optimism API?
Etherscan requires a paid plan for OP Mainnet API access. Blockscout offers it free. Since both APIs now use a unified multichain format, switching is a base URL and key swap:chainid → chain_id, swap the base URL and key.
→ Full Migration Guide
What Developers Build on Optimism with Blockscout’s API
Superchain Applications — Optimism’s interoperability vision means apps increasingly span multiple OP Stack chains. Blockscout’s multichain PRO API is purpose-built for this — one key and achain_id swap queries OP Mainnet, Base, Zora, Ink, Soneium, and every other Superchain network.
Governance & Public Goods Tools — Optimism’s RetroPGF and governance ecosystem generates significant onchain activity. Developers build dashboards, voting tools, and funding trackers that rely on transaction and contract data from the explorer API.
DeFi & Yield Infrastructure — OP Mainnet hosts major DeFi protocols. API access to contract state, event logs, and token transfers powers analytics dashboards, position monitoring, and automated strategies.
Cross-Chain Debugging — Blockscout surfaces L1↔L2 deposits, withdrawals, and message passing natively, and the PRO API includes OP-specific endpoints (optimism module) for rollup-specific data.
Optimism on Blockscout
Blockscout runs alongside Etherscan on OP Mainnet, but with key advantages: free API access on all tiers, plus unique features like Blockscout’s DAppscout marketplace, public tagging across chains, and Vera bytecode verification. As the Superchain grows, Blockscout’s unified multichain API gives developers a consistent interface across every OP Stack chain. Blockscout also supports native Interop features for the OP Stack, including cross-chain message tracking, relay status, and interop contract data.Get Started
- Get a free API key at dev.blockscout.com
- Use
chain_id=10in your PRO API requests - Explore endpoints at optimism.blockscout.com/api-docs