# Base Swap

> Base Swap is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Executes a token swap on the Base network, routed by 0x across Uniswap, Aerodrome, Balancer, Curve and more, returning a signable transaction with approval steps, minimum output, route, and fees.

## Facts

- Endpoint: GET https://402.com.tr/api/x402/base-swap?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-swap-1bcc450d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4azfzhgN8QUiOKs6vdle9

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-swap-1bcc450d
```

Example prompt: Swap 100 USDC for ETH on Base using my wallet 0xAbC...123 — use a 50 bps slippage tolerance and give me the transaction I need to sign.

## When to prefer this

Choose this endpoint when you need a ready-to-sign swap transaction on the Base L2 network with automatic DEX aggregation across Uniswap, Aerodrome, Balancer, and Curve. It is particularly valuable when buying unknown tokens because it runs a honeypot/sellability check automatically. Prefer it over generic Ethereum swap APIs when targeting Base specifically, and over manual DEX calls when you want optimal routing without building your own aggregation logic.

## Known failure modes

- Honeypot detected: token fails sellability check and force=1 not set — swap refused
- Invalid token symbol or address: unrecognized token name not resolvable on Base
- Insufficient liquidity: no viable route found across supported DEXes
- Slippage too tight: market moved beyond the specified bps tolerance
- Invalid taker address: malformed wallet address provided
- Amount too small: below minimum viable swap threshold for routing

## How this service works

An executable swap on Base, routed by 0x across Uniswap, Aerodrome, Balancer, Curve and more. Returns the transaction for your own wallet to sign, plus the approval step if needed, minimum out, route and fees. We never hold funds. Name tokens as ETH, USDC, WETH, cbBTC, AERO… or a 0x address; buying an unknown token runs a sellability check first and refuses a honeypot unless force=1.

## Output

Returns a signable swap transaction (and approval transaction if needed), the minimum output amount, the full DEX route used, protocol fees, and — for unknown tokens — a sellability/honeypot check result. The caller signs and broadcasts the transaction themselves; no funds are held by the service.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "sell",
      "buy",
      "amount",
      "taker"
     ],
     "properties": {
      "buy": {
       "type": "string",
       "description": "Token you buy"
      },
      "sell": {
       "type": "string",
       "description": "Token you sell"
      },
      "taker": {
       "type": "string",
       "description": "Your wallet (signs the swap)"
      },
      "amount": {
       "type": "string",
       "description": "Amount you sell"
      },
      "slippage": {
       "type": "string",
       "description": "Slippage in bps (optional, default 100)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-swap-1bcc450d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
