# WarpPay402 Aerodrome Swap

> WarpPay402 Aerodrome Swap is a paid API for AI agents from api.warppay402.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-30).

Executes or quotes a token swap on the Aerodrome DEX (Base chain) given input/output token addresses, amount, decimal precision, and pool type (stable or volatile).

## Facts

- Endpoint: POST https://api.warppay402.com/api/v1/tools/aerodrome-swap?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/warppay402-aerodrome-swap-23beb0e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4tSdD9Z6Gm7LJ5ceVupe2

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 warppay402-aerodrome-swap-23beb0e4 -d '<json body>'
```

Example prompt: Swap 100 USDC (6 decimals) for WETH on Aerodrome using a stable pool — tokenIn is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 and tokenOut is 0x4200000000000000000000000000000000000006.

## When to prefer this

Use this endpoint when an AI agent needs to programmatically execute or quote a token swap on the Aerodrome DEX on Base chain, especially when operating in a non-custodial x402 micropayment context. Prefer this over generic bridge or swap APIs when the target DEX is specifically Aerodrome Finance and the chain is Base.

## Known failure modes

- Invalid token address returns an error or failed transaction
- Insufficient liquidity in the selected pool causes swap failure
- Wrong decimalsIn value leads to incorrect amount calculation
- isStable mismatch with the actual pool type causes routing failure
- Slippage too high results in transaction revert
- Payment of 0.001 USDC via x402 not completed causes 402 rejection

## How this service works

Non-Custodial x402 Monetization Server & MCP Tools for AI Agents.

## Output

Returns a JSON object with a success boolean, quotedAmountOut (the estimated output token amount as a string in the token's smallest unit), and transactionHash (the on-chain tx hash if the swap was executed on Base chain).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "tokenIn",
  "tokenOut",
  "amountIn",
  "decimalsIn",
  "isStable"
 ],
 "properties": {
  "tokenIn": {
   "type": "string"
  },
  "amountIn": {
   "type": "string"
  },
  "isStable": {
   "type": "boolean"
  },
  "tokenOut": {
   "type": "string"
  },
  "decimalsIn": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "success": true,
  "quotedAmountOut": "1000000",
  "transactionHash": "0x123..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/warppay402-aerodrome-swap-23beb0e4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.warppay402.com](https://www.zero.xyz/host/api.warppay402.com/llms.txt)
