# AmanChain Swap Quote

> AmanChain Swap Quote is a paid API for AI agents from preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai, paid per call via x402, $0.003732/call, status unknown (last checked 2026-09-14).

Returns an exact AMM swap quote for any token pair using live on-chain consensus state on AmanChain

## Facts

- Endpoint: POST https://preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai/api/x402/aman-swap-quote
- Price: $0.003732/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-swap-quote-61cd13f4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yARJq2CxyXlyQtCdMghN1

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 amanchain-swap-quote-61cd13f4 -d '<json body>'
```

Example prompt: What's the exact swap quote on AmanChain if I trade 100 USDC for ETH right now — how many tokens would I get and what's the price impact?

## When to prefer this

Use this endpoint when you need a precise, deterministic AMM swap quote executed against real live on-chain AmanChain state — not a cached or estimated price. Prefer this over generic price APIs when you need the actual output amount a swap would yield, including slippage and price impact, before executing a trade. Ideal for pre-trade validation, DeFi bots, and arbitrage checks on AmanChain.

## Known failure modes

- Invalid or unsupported token pair — no liquidity pool exists for the given tokens
- Malformed request body — missing required fields like token addresses or amount
- Insufficient pool liquidity for the requested swap size
- Network or node unavailability causing the deterministic computation to fail
- Payment failure — x402 USDC payment on Base not settled correctly

## How this service works

Swap Quote: exact AMM quote for any pair Executed deterministically by the AmanChain node against live consensus state (real blocks, pools, balances) — paid per call via x402, settled in USDC on Base. Input: JSON body {"serviceId":"aman-swap-quote","request":"<input>"}. No account, no API key.

## Output

An exact AMM swap quote computed deterministically against live AmanChain consensus state, including the expected output token amount, exchange rate, price impact, and pool state at the time of the query.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "example": {
      "ok": true
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-swap-quote-61cd13f4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai](https://www.zero.xyz/host/preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai/llms.txt)
