# SafeRoute Base DEX Swap Quote

> SafeRoute Base DEX Swap Quote is a paid API for AI agents from api.usesaferoute.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns a safety-checked DEX swap quote on Base for approved token pairs, delivering unsigned calldata or a gasless signable payload without holding or broadcasting funds.

## Facts

- Endpoint: POST https://api.usesaferoute.com/v1/quote
- 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/saferoute-base-dex-swap-quote-b6e0e2cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_44PURYjv_bPpMdM8uPFBz

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 saferoute-base-dex-swap-quote-b6e0e2cd -d '<json body>'
```

Example prompt: Get me a SafeRoute safety-checked swap quote to buy WETH using 200 USDC from my wallet 0xAbC1234567890AbC1234567890AbC1234567890Ab on Base — use standard execution mode.

## When to prefer this

Choose SafeRoute when you need a safety-audited Base DEX swap quote for the approved token set (USDC, WETH, EURC, cbETH, cbBTC, VIRTUAL, AERO) and want the assurance that the service never custodies funds or broadcasts transactions. Prefer it for agentic workflows where the agent needs to obtain calldata or a gasless payload for the user to sign independently, especially when operating within the $500 USDC per-swap limit on Base mainnet.

## Known failure modes

- Unsupported token pair — only the seven approved symbols (USDC, WETH, EURC, CBETH, CBBTC, VIRTUAL, AERO) are accepted
- Sell amount exceeds $500 USDC equivalent cap — request will be rejected
- Invalid wallet address format — must be a valid 40-hex-character 0x address
- Insufficient liquidity for the requested pair or amount at quote time
- Payment failure — $0.01 USDC per call via x402 protocol must succeed before quote is returned
- Invalid intentId or referralCode format — must match required pattern and length

## How this service works

Buy a safety-checked Base DEX swap quote for USDC, WETH, EURC, cbETH, cbBTC, VIRTUAL, or AERO. Returns unsigned calldata or a buyer-signable gasless payload; SafeRoute never holds funds, signs, or broadcasts.

## Output

Returns a swap quote containing either unsigned calldata (standard mode) or a buyer-signable gasless payload (gasless mode), along with the exchange rate and routing details for the requested token pair on Base. The service never holds funds, signs transactions, or broadcasts to the network.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "enum": [
    "USDC",
    "WETH",
    "EURC",
    "CBETH",
    "CBBTC",
    "VIRTUAL",
    "AERO"
   ],
   "type": "string",
   "description": "Approved Base buy-token symbol"
  },
  "from": {
   "enum": [
    "USDC",
    "WETH",
    "EURC",
    "CBETH",
    "CBBTC",
    "VIRTUAL",
    "AERO"
   ],
   "type": "string",
   "description": "Approved Base sell-token symbol"
  },
  "amount": {
   "type": "string",
   "pattern": "^\\d+(?:\\.\\d+)?$",
   "description": "Human-readable sell amount, capped at $500 USDC equivalent"
  },
  "wallet": {
   "type": "string",
   "pattern": "^0x[a-fA-F0-9]{40}$",
   "description": "Buyer-controlled taker wallet"
  },
  "intentId": {
   "type": "string",
   "pattern": "^[a-zA-Z0-9_-]+$",
   "maxLength": 128,
   "minLength": 16
  },
  "referralCode": {
   "type": "string",
   "pattern": "^[a-zA-Z0-9_-]+$",
   "maxLength": 64,
   "minLength": 3
  },
  "executionMode": {
   "enum": [
    "standard",
    "gasless"
   ],
   "type": "string",
   "default": "standard"
  },
  "sourceAgentId": {
   "type": "string",
   "maxLength": 128,
   "minLength": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saferoute-base-dex-swap-quote-b6e0e2cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.usesaferoute.com](https://www.zero.xyz/host/api.usesaferoute.com/llms.txt)
