# kair-os.trade Uniswap V3 Base Swap Quote Comparator

> kair-os.trade Uniswap V3 Base Swap Quote Comparator is a paid API for AI agents from kair-os.trade, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Fetches and compares four Uniswap V3 single-pool exact-input swap quotes on Base for a given token pair and input amount, returning raw output amounts and gas estimates without executing any swap.

## Facts

- Endpoint: POST https://kair-os.trade/base-quotes/quote?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kair-os-trade-uniswap-v3-base-swap-quote-comparator-72e60106
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LTBdVrlqXz1V-MWs5inCC

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 kair-os-trade-uniswap-v3-base-swap-quote-comparator-72e60106 -d '<json body>'
```

Example prompt: Compare the four Uniswap V3 pool quotes on Base for swapping 1000000000 raw USDC (address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) to WETH (address 0x4200000000000000000000000000000000000006) at the latest block — show me the raw output amounts and gas estimates for each pool.

## When to prefer this

Choose this endpoint when you need to compare multiple Uniswap V3 pool quotes on Base before deciding on a swap route, especially when you want raw QuoterV2 gas estimates alongside output amounts. Prefer it over single-pool quoters when route selection matters, or when you want finality guarantees via the 'finalized' blockTag. Not suitable for actually executing swaps or for getting net-cost-ranked recommendations.

## Known failure modes

- Invalid token address format (not a valid 0x hex address) returns validation error
- tokenIn equals tokenOut causes rejection
- amountIn of zero or non-numeric string returns error
- No liquidity in any pool for the token pair results in empty or failed quotes
- Block tag value outside 'latest' or 'finalized' enum rejected
- Rate limit or upstream RPC failure returns 5xx error
- Malformed request body returns 400 with schema validation details

## How this service works

Compare four Uniswap V3 single-pool exact-input swap quotes on Base at one block (latest by default, finalized optional). Returns raw token amounts and QuoterV2 gas estimates. Gross output comparison; execution costs and net ranking remain unknown. Does not execute swaps.

## Output

Returns four Uniswap V3 single-pool exact-input swap quotes for the specified token pair and input amount on Base, including raw output token amounts and QuoterV2 gas estimates per pool. Does not rank by net value after execution costs; only gross output amounts are provided. Results are anchored to either the latest or finalized block as requested.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tokenIn": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$",
   "description": "Nonzero Base token contract address; must differ from tokenOut."
  },
  "amountIn": {
   "type": "string",
   "pattern": "^[1-9][0-9]{0,38}$",
   "description": "Raw input-token units as a positive decimal string, at most 340282366920938463463374607431768211455. Decimals are never inferred."
  },
  "blockTag": {
   "enum": [
    "latest",
    "finalized"
   ],
   "type": "string",
   "default": "latest",
   "description": "Block state to quote. Latest favors freshness; finalized favors finality."
  },
  "tokenOut": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$",
   "description": "Nonzero Base token contract address; must differ from tokenIn."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kair-os-trade-uniswap-v3-base-swap-quote-comparator-72e60106/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kair-os.trade](https://www.zero.xyz/host/kair-os.trade/llms.txt)
