# Avalanche C-Chain DEX Best Execution Router

> Avalanche C-Chain DEX Best Execution Router 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-16).

Returns the cheapest buy venue and highest-paying sell venue across Trader Joe, Pangolin, and Uniswap v3 on Avalanche C-Chain, along with spread in bps, fee-adjusted arbitrage spread, and optimal trade size.

## Facts

- Endpoint: GET https://x402.donnyautomation.com/avalanche/route
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/avalanche-c-chain-dex-best-execution-router-31b01032
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jQf4uHNCvgUf1O7qwCQCk

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 avalanche-c-chain-dex-best-execution-router-31b01032
```

Example prompt: Compare live DEX prices for WAVAX/USDC across Trader Joe, Pangolin, and Uniswap v3 on Avalanche — tell me which venue is cheapest to buy on, which pays the most to sell into, and what the fee-adjusted arbitrage spread is right now.

## When to prefer this

Choose this endpoint when you need live best-execution routing or cross-DEX arbitrage data specifically on Avalanche C-Chain across Trader Joe, Pangolin, and Uniswap v3. Prefer it over generic price feeds when you need venue comparison, spread in bps, fee-adjusted arbitrage metrics, and optimal trade sizing in a single call. Use sibling endpoints for Arbitrum, BSC, or Polygon chains.

## Known failure modes

- Invalid or unsupported token pair symbol returns an error (pair not found on Avalanche C-Chain DEXs)
- Insufficient liquidity on one or more venues may result in unreliable spread calculations
- Payment not received (x402 protocol failure) blocks response
- Network congestion on Avalanche may cause stale price data
- Tokens without pools on all three venues may return partial comparisons

## How this service works

Cheapest venue to buy and richest to sell ONE pair on Avalanche C-Chain across Trader Joe, Pangolin and Uniswap v3. Returns buyAt and sellAt (venue, price, tvlUsd), midSpreadBps, grossSpreadBps, optimalInput, venuesConsidered. Requires ?pair=SYM/SYM (e.g. WAVAX/USDC). Errors: 400 bad_pair, 404 not_routable, 502 upstream_read_failed. Ranks venues for one pair; to rank EVERY pair use /scan. Execution at a size is /slippage. Chain-pinned; bare /route = BSC.

## Output

Returns the recommended buy venue (e.g. Trader Joe), the recommended sell venue (e.g. Pangolin), the raw cross-exchange spread in basis points, the fee-adjusted gross arbitrage spread, and the optimal trade size to exploit the spread — all based on live on-chain prices across the three supported Avalanche C-Chain DEXs.

## 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": [
      "pair"
     ],
     "properties": {
      "pair": {
       "type": "string",
       "description": "Token pair as SYM/SYM on Avalanche C-Chain (e.g. WAVAX/USDC)."
      }
     }
    }
   },
   "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": 43114,
  "network": "avalanche"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/avalanche-c-chain-dex-best-execution-router-31b01032/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)
