Cross-chain and cross-DEX arbitrage opportunity scanner via Bitquery, paid per-call with USDC on Base, Solana, or Lightning BTC.
What it does
This endpoint scans for cross-chain and cross-DEX price discrepancies and profitable arbitrage routes. It is part of the Einstein AI x402 API suite, which wraps Bitquery blockchain data into pay-per-request endpoints using the x402 micropayment protocol. The `/raw` variant returns raw query data without AI-generated analysis.
The arbitrage scanner supports multiple EVM chains (Ethereum, Base, BSC, Arbitrum, Polygon, Optimism) and accepts optional parameters for chain selection, result limit (up to 500), and time period (1h to 30d). Payment is $1.00 per request, settled in USDC on Base (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913), USDC on Solana, or 1,309 sats via Lightning Network. No API key is needed — authentication is handled entirely through the x402 `X-PAYMENT` header containing a signed USDC TransferWithAuthorization payload.
The endpoint returned a valid 402 payment challenge during probing, confirming it is live. The OpenAPI spec is comprehensive, covering request/response schemas, pricing metadata, and payment flow details. Note that the `/api` route on the origin returned a 522 (host timeout), but this does not affect the x402 endpoint itself, which is served through a different path.
Capabilities
Use cases
- —Detect price discrepancies for the same token across different DEXes and chains
- —Feed arbitrage signals into automated trading bots
- —Monitor cross-chain pricing inefficiencies for research or alpha generation
- —Integrate real-time arbitrage data into DeFi dashboards
- —Scan for profitable routes across Ethereum, Base, BSC, Arbitrum, Polygon, and Optimism
Fit
Best for
- —AI agents that need on-demand cross-chain arbitrage intelligence without API key management
- —DeFi trading bots looking for pay-per-use arbitrage data
- —Researchers analyzing cross-DEX pricing inefficiencies across EVM chains
Not for
- —High-frequency trading requiring sub-second latency (90-second max timeout)
- —Non-EVM chains beyond Solana (only EVM chains plus Solana payment supported)
- —Users who need AI-interpreted analysis (this /raw endpoint returns unprocessed data)
Quick start
curl -X POST https://emc2ai.io/x402/bitquery/arbitragescanner/raw \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <base64-signed-USDC-authorization>" \
-d '{"chain": "ethereum", "limit": 10, "timeperiod": "24h"}'Example
Request
{
"chain": "ethereum",
"limit": 10,
"timeperiod": "24h"
}Response
{
"result": {
"arbitrage_opportunities": [
{
"dex_a": "Uniswap V3",
"dex_b": "SushiSwap",
"token": "0xabc...",
"symbol": "EXAMPLE",
"price_a": 1.0023,
"price_b": 1.0089,
"spread_pct": 0.66,
"volume_usd": 45200.5
}
]
},
"status": "completed",
"payment": {
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000000",
"scheme": "exact",
"txHash": "0xdef...",
"network": "base",
"x402Version": 1
}
}Endpoint
Quality
The endpoint is live (402 challenge confirmed), has a comprehensive OpenAPI spec with full request/response schemas, clear pricing ($1.00 USDC), and multi-chain payment options. Deducted points because the actual response payload structure is inferred (no real 200 response example captured), and the /api route returned a 522 timeout suggesting some infrastructure instability.
Warnings
- —The /api route on emc2ai.io returned HTTP 522 (origin timeout), indicating possible host-level instability, though the x402 endpoint itself responded correctly.
- —The example response JSON is inferred from the OpenAPI BitqueryResponse schema — no actual 200 response was captured during probing.
- —This is the /raw variant which returns data without AI analysis; the non-raw /x402/bitquery/arbitragescanner endpoint (priced at $1.15) includes AI interpretation.
Citations
- —Endpoint returns 402 with x402 payment challenge confirming it is livehttps://emc2ai.io/x402/bitquery/arbitragescanner/raw
- —Price is $1.00 per request (1000000 atomic units, 6 decimals USDC)https://emc2ai.io/x402/bitquery/arbitragescanner/raw
- —Supports chains: ethereum, base, bsc, arbitrum, polygon, optimismhttps://emc2ai.io/x402/bitquery/arbitragescanner/raw
- —Accepts payment via USDC on Base, USDC on Solana, and BTC via Lightning Networkhttps://emc2ai.io/x402/bitquery/arbitragescanner/raw
- —OpenAPI spec describes the arbitrage scanner as finding cross-chain and cross-DEX arbitrage opportunitieshttps://emc2ai.io
- —Paid features typically cost $0.20–$1.00 per invocationhttps://emc2ai.io/docs
- —The /api route returned a 522 timeout errorhttps://emc2ai.io/api