ETH Price: $2,457.86 (-2.58%)
Image OP API by Etherscan

The complete API for OP data

Query OP balances, transactions, tokens, contracts, and logs using the same Etherscan API that powers OP Mainnet Etherscan, with one API key and chainid=10.

Trusted by teams at
Coinbase Coingecko Coingecko Metamask Metamask Binance
10
OP Mainnet chain ID
11155420
OP Testnet chain ID
60+ EVM Chains
with one API key
99.99%
uptime status

Why teams choose Etherscan API for OP data

Explorer-grade blockchain data for teams that need accuracy, coverage, scale, and a clear path to multichain data from day one.

The first-choice API for OP data

When teams need blockchain data they can defend in front of users, finance, or compliance, they start with the Etherscan API.

The reference layer for onchain data

Built with OP Mainnet Etherscan data, the API is used as a reference point to verify balances, transfers, internal transactions, and contract activity on OP.

Accuracy that holds up under scrutiny

Capture edge cases many providers miss and reduce time spent reconciling mismatched records across tools.

One integration, 60+ chains

Same endpoints, same structure, one API key across OP and other chains. Just set chainid=10 for Mainnet or chainid=11155420 for Testnet.

OP data through a familiar API

Use the same request parameters, response formats, and API conventions that power OP Mainnet Etherscan and other Etherscan-supported explorers.

The default for mission-critical data

If blockchain data is mission-critical, Etherscan API is the default choice for teams that need accuracy and reliability.

How to start querying OP with Etherscan API

Get an API key, set the OP chain ID, and call the same endpoint structure used across 60+ EVM chains.

API key Active
YourApiKeyToken
One key for OP + 60+ chains
Step 1

Get your API key

Create an Etherscan API key and use it for OP Mainnet, Testnet, and other supported chains.

OP Mainnet 10
OP Testnet 11155420
chainid=10 V2
Step 2

Set the OP chain ID

Pass chainid=10 for OP Mainnet or chainid=11155420 for OP Testnet in Etherscan API requests.

OP query Ready
Balances & transfers
Contracts & logs
Tokens & receipts
Step 3

Call OP endpoints

Use familiar account, token, contract, transaction, and log endpoints to pull OP Mainnet Etherscan-grade indexed data into your app.

Single API to access all Endpoints & Metadata

Use Etherscan API with chainid=10 to query indexed OP data through a familiar endpoint structure.

All Etherscan API Endpoints

View all our available endpoints on Etherscan API documentation.
View All Endpoints

What you can build with the OP API

Build OP wallets, accounting tools, security products, and analytics without operating a separate blockchain indexer.

OP transaction reconciliation API visual OP transaction reconciliation API visual OP transaction reconciliation API visual

Transaction Reconciliation

Match OP normal and internal transactions, token transfers, fees, timestamps, and execution status with ledger entries and imported wallet records.

Build with: /txlist /txlistinternal /getstatus and more
OP tax and accounting API visual OP tax and accounting API visual OP tax and accounting API visual

Tax & Accounting

Turn OP activity into tax filings, accounting workflows, and audit reports with internal transactions, token transfers, historical balances, and address metadata.

Build with: /tokenbalance /txlist /tokennfttx and more
OP financial reporting API visual OP financial reporting API visual OP financial reporting API visual

Financial Reporting & Audit Evidence

Produce OP period-end balance checks, transaction schedules, exception reports, and traceable source records for financial review.

Build with: /addresstokenbalance /balancehistory /getlogs and more
OP NFT and digital asset reporting API visual OP NFT and digital asset reporting API visual OP NFT and digital asset reporting API visual

NFT & Digital Asset Reporting

Track OP ERC-721 and ERC-1155 transfers, token IDs, counterparties, timestamps, and related transactions for ownership and disposal records.

Build with: /tokennfttx /token1155tx /getlogs and more

Multichain by Default

Turn your app to multichain with our API that supports over 60+ supported chains.

Start building on OP today

Choose an Etherscan API plan and start querying OP Mainnet data with chain ID 10.

Etherscan API supported chains