The Optimism data API for the Superchain, one endpoint.
You shouldn't have to run an OP Stack node, babysit an archive node or stitch together raw JSON-RPC just to answer a simple question. We've already indexed Uniswap trades, token transfers, contract calls and events. Each is one query — or one live stream — away.
subscription { EVM(network: optimism) { DEXTrades( where: {Trade: {Dex: {ProtocolName: {is: "uniswap_v3"}}}} ) { Trade { Buy { Price Amount Currency { Symbol } } Dex { ProtocolName } } } } }
JSON-RPC was never meant to answer the questions you actually have.
Ask "what did this wallet ever do?" and raw OP Stack hands you an archive node, a pile of ABIs to decode by hand and thousands of chained eth_getLogs calls. We've already done that work, so you can skip straight to the answer.
Three ways to get Optimism data, one dataset underneath.
Write your query once in GraphQL and the same data comes back over GraphQL streams, Kafka or a bulk cloud export. No second pipeline to maintain: just pick the channel that matches how fast and how much you need.
Every major Optimism venue, decoded into one feed.
One DEXTrades query covers 100+ Optimism DEXs. Filter by token, pair, pool, wallet or protocol, then roll it up however you need — OHLCV candles, liquidity events, slippage, pool reserves, top traders or volume.
Every Optimism dataset, one GraphQL endpoint.
From ERC-20 transfers to decoded contract events, it's all behind a single endpoint — no node, no archive sync, no indexer to build. Every dataset deepens with archive add-ons or Enterprise and streams live over WebSocket (fixed-cost Kafka on Enterprise) whenever you need it real time.
Optimism Token Transfers API
Every ERC-20, ERC-721 & ERC-1155 transfer with historical USD value, volumes and inflow / outflow per address.
Read the docs →DeFiOptimism DEX Trades API
Swaps across Uniswap V2/V3/V4, Curve, Sushi & 100+ DEXs with OHLCV candles, pairs, pools and per-wallet history.
Read the docs →NFTOptimism NFT API
Sales on Seaport, the contract OpenSea runs on, plus NFT transfers, mints, ownership and holder distribution.
Read the docs →WalletsOptimism Balance API
Real-time & historical native ETH and token balances for any wallet, with USD portfolio value for trackers and tax tools.
Read the docs →TokensOptimism Token Holders API
Top holders, balance distribution and decentralization metrics — Gini and Nakamoto coefficients — for any ERC-20.
Read the docs →ComplianceMoney Flow · Coinpath®
Trace inbound and outbound fund flows across Optimism addresses for AML, forensics and investigation workflows.
Read the docs →ContractsSmart Contract Trace API
Decoded smart-contract call traces with arguments, internal transactions and success status — parsed by ABI.
Read the docs →ContractsSmart Contract Events API
Decoded event logs by ABI — query Transfer, Approval, Swap or any topic by contract, name or event signature.
Read the docs →Real-timeOptimism WebSocket Streams
Subscribe to new blocks, transfers, DEX trades and contract events as they land, over WebSocket or Kafka on Enterprise.
Read the docs →NetworkOptimism Transactions API
Transaction details, receipts, internal transactions, gas used and status — filter by sender, receiver or value.
Read the docs →NetworkOptimism Blocks API
Block headers, timestamps, base fees, gas usage and validator data for time-series analytics and explorers.
Read the docs →NetworkOptimism Gas & Fees API
EIP-1559 base and priority fees, gas usage patterns and cost analysis to power gas estimators and fee dashboards.
Read the docs →The Optimism products people actually ship on us.
Each of these is just a filter on the same indexed data — subscribe over WebSocket on self-service (fixed-cost Kafka on Enterprise) when you're building a bot, or hit GraphQL when you're building a dashboard.
Catch new Velodrome pools first
Get pool-creation and hook events the second they land, filtered by token pair or fee tier. Be early to every new market without watching the chain yourself.
where: { Log: { Signature: { Name: "Initialize" } } }
Wallet PnL & portfolio
Pull a wallet's entire transfer and trade history with historical USD prices already attached, and work out realized PnL across every DEX it has touched.
where: { Transfer.Receiver: "<wallet>" }
Build OHLCV price charts
Turn raw DEX trades into clean candlesticks per pair and interval — the same kind of feed behind TradingView-style Optimism charts.
Trade: { close: PriceInUSD ... }
} # 1m / 5m / 1h
What teams say about our Optimism data
"We did a thorough search of the market for the best onchain data. Bitquery came out on top — and now powers all live prices across Nansen. We don't think of them as a vendor. They're a partner."
Pricing
Start on Optimism. Scale when you ship.
Real-time data on this chain is included in every self-service plan. Every paid plan starts with a 7-day free trial: full streaming included, no card required.
Personal
For side projects, learning & testing. Personal use only, no commercial use.
billed annually ($348/yr) · save 41%
- 100k API points / mo ≈ 20k calls
- 30 req/min · 3 simultaneous
- Full GraphQL & REST schema
- Real-time data · 10 core chains 30-day trades · 8 hours to 4 days on-chain
- API only, no streams
- Community support
Pro
For trading bots, alerts & dashboards on live onchain and DEX data.
billed annually ($828/yr) · save 30%
- 1M API points / mo ≈ 200k calls
- 90 req/min · 6 simultaneous
- 100k stream-minutes + 5 GB
- 100 concurrent streams
- All streams onchain + mempool
- Commercial-use license
- Real-time data · 10 core chains 30-day trades · 8 hours to 4 days on-chain
- Community + Telegram support
Scale
For production real-time apps: every stream, scale on demand.
billed annually ($2,388/yr) · save 33%
- 5M API points / mo ≈ 1M calls
- 240 req/min · 12 simultaneous
- 2M stream-minutes + 50 GB
- 1,000 concurrent streams
- All streams onchain + mempool
- Commercial-use license
- Dedicated Slack support
Enterprise
Full history, unlimited streams & bulk delivery at scale.
flat platform fee, no metering
- Complete history · 25 chains
- Unlimited WebSocket streaming no stream-min or GB limit
- Custom points & rate limits
- Kafka fixed-cost · S3 bulk export
- Coinpath® money flow
- SLA · SSO · dedicated support
Flat-rate add-ons: $35 / 1M points on every self-service plan · $35 / 200k stream-minutes and $35 / 5 GB on Pro and Scale (bought yearly · save 30%). Billed only for what you add, with volume packs that cut the rate as you scale.
Historical data is sold separately: self-service plans are real-time only. Per-chain archive packs start at $100/mo ($70/mo billed yearly); transfers, balances & holders are $150/mo ($105/mo yearly) on most chains. EVM and Tron trading and transfers packs include calls and events. See historical add-ons →
Optimism history as files
Need history for a backtest or an audit? Buy it as Parquet files you keep instead of paging through the API. Every dataset has a free sample file, and you can pay by card or bank transfer.
Need other tables or a custom range? Request a custom extract
Optimism data questions, answered.
How can I get Optimism blockchain data with Bitquery?
How do I query Uniswap, SushiSwap and other Optimism DEX trades?
Can I stream Optimism data in real-time — new blocks, transfers, DEX trades?
Does Bitquery support ERC-20, ERC-721 and ERC-1155 tokens?
How do I get Optimism wallet balances, transactions and PnL?
Does Bitquery support smart-contract calls and decoded event logs?
Ship your Optimism product this week.
7-day free trial — real-time Optimism data on self-service plans, no node to run. Live window: 30-day trades · 8 hours to 4 days on-chain; deepen history with archive add-ons, or go Enterprise for complete history.