# Base DEX Cross-Arbitrage Scanner

> Base DEX Cross-Arbitrage Scanner is a paid API for AI agents from x402.donnyautomation.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Scans all liquid pairs across BaseSwap, SushiSwap, and Uniswap v3 on Base L2, returning ranked cross-venue arbitrage spreads with buy/sell venues, spread in bps, optimal trade size, and gross USD profit.

## Facts

- Endpoint: GET https://x402.donnyautomation.com/base/scan
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-dex-cross-arbitrage-scanner-78a37234
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SC5-JVkiJPsoH4-bzvv1x

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability base-dex-cross-arbitrage-scanner-78a37234
```

Example prompt: Scan all liquid pairs across BaseSwap, SushiSwap, and Uniswap v3 on Base right now and show me every cross-venue arbitrage opportunity with a gross spread of at least 15 bps, ranked by profitability.

## When to prefer this

Choose this endpoint when you need a full cross-DEX sweep of arbitrage opportunities on Base L2 specifically, across BaseSwap, SushiSwap, and Uniswap v3 simultaneously, rather than checking a single pair or a single venue. It is purpose-built for arbitrage bots that need ranked, liquid opportunities filtered by a TVL floor — not for general price lookups or liquidity depth queries on a specific pair.

## Known failure modes

- No opportunities above minSpreadBps threshold — returns empty list
- minVenueTvlUsd set too high — valid pools filtered out, fewer or no results
- RPC or on-chain data latency causes stale prices — spread may not be executable
- Invalid minSpreadBps value (e.g. non-numeric string) — likely 400 error
- Network congestion on Base L2 causes timeout or delayed response

## How this service works

Ranked cross-DEX arbitrage spreads across every liquid pair on Base (BaseSwap, SushiSwap and Uniswap v3). Returns opportunities[] with pair, grossSpreadBps, buyAt, sellAt, optimalTradeSizeUsd, capturable. GROSS, before gas and MEV. Optional ?minSpreadBps=20 (default 10), minVenueTvlUsd, limit. Send one param: a bare call skips the free tier. Errors: 400 bad_min_spread. Scans EVERY pair; for one known pair use /route. Chain-pinned; bare /scan = BSC.

## Output

A ranked list of cross-venue arbitrage opportunities on Base L2, each entry including the token pair, the DEX to buy on, the DEX to sell on, the gross spread in basis points, the optimal trade size in USD, and the gross USD profit at that size. Venues below the liquidity floor (default $1000 TVL) are excluded. Results are gross figures before gas and MEV costs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "minSpreadBps"
     ],
     "properties": {
      "minSpreadBps": {
       "type": "string",
       "description": "Minimum gross spread to report (default 10). Also minVenueTvlUsd (default 1000) and limit."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ts": "2026-07-31T00:00:00.000Z",
  "chainId": 8453,
  "network": "base"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-dex-cross-arbitrage-scanner-78a37234/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.donnyautomation.com](https://www.zero.xyz/host/x402.donnyautomation.com/llms.txt)
