Swap Quote

Instant AMM swap quote — exact output amount, price impact and swap fee for any token pair; DeFi exchange-rate and swap pricing API. Deterministic on-chain execution by the AmanChain node — live consensus state, real blocks, pools and balances. Pay per call via x402 (USDC on Base), no account, no API key. POST JSON {"serviceId":"aman-swap-quote","request":"<input>"}.

SearchLiveeip155:8453Exactvia cdp
DefiSwapAmmDexQuote
Calls · 30d
10→ 0%
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 19 snapshots so far.
$7.37
Verified settled volume
444 settlements proven x402 by their on-chain EIP-3009 marker.
$0.0037
Listed price
As published in the catalog. Always read the live 402 before paying.
10
Calls · 30d
Upstream's own call count for this endpoint, not ours.
2
Unique payers · 30d
Last called 2026-09-10 23:02Z
Upstream on-chain volume
Reported by the source catalog.
Paid to
0xfB5625d44be488414606773244F0De35410b2f39

The wallet the 402 directs payment to. Its whole payment record — every payer, every chain — is on the merchant page.

Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Provider

The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service — most of the catalog is unregistered.

Live 402 challenge

Captured by the enrichment pass, not read just now. Prices can change — always read the 402 the endpoint answers with.

{
  "x402": true,
  "error": "Payment Required",
  "status": 402,
  "accepts": [
    {
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "extra": {
        "name": "USD Coin",
        "version": "2"
      },
      "payTo": "0xfB5625d44be488414606773244F0De35410b2f39",
      "scheme": "exact",
      "network": "base",
      "mimeType": "application/json",
      "resource": "https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-swap-quote",
      "description": "Instant AMM swap quote — exact output amount, price impact and swap fee for any token pair; DeFi exchange-rate and swap pricing API. Deterministic on-chain execution by the AmanChain node — live consensus state, real blocks, pools and balances. Pay per call via x402 (USDC on Base), no account, no API key. POST JSON {\"serviceId\":\"aman-swap-quote\",\"request\":\"<input>\"}.",
      "outputSchema": {
        "input": {
          "body": {
            "request": "100 AMAN->USDT",
            "serviceId": "aman-swap-quote"
          },
          "type": "http",
          "method": "POST",
          "bodyType": "json"
        },
        "output": {
          "type": "json",
          "example": {
            "feePct": 0.3,
            "amountIn": 100,
            "amountOut": 61.8,
            "priceImpactPct": 0.31
          }
        }
      },
      "maxAmountRequired": "3732",
      "maxTimeoutSeconds": 120
    },
    {
      "asset": "AMAN",
      "extra": {
        "txType": "agent_invoke",
        "maxTimeoutSeconds": 120
      },
      "payTo": "AMb5261ade9f2bf55da5ad3dfe55edd3c71208c8e2475a8bae",
      "scheme": "aman-x402",
      "chainId": 1,
      "network": "amanchain-mainnet",
      "serviceId": "aman-swap-quote",
      "outputSchema": {
        "input": {
          "body": {
            "request": "100 AMAN->USDT",
            "serviceId": "aman-swap-quote"
          },
          "type": "http",
          "method": "POST",
          "bodyType": "json"
        },
        "output": {
          "type": "json",
          "example": {
            "feePct": 0.3,
            "amountIn": 100,
            "amountOut": 61.8,
            "priceImpactPct": 0.31
          }
        }
      },
      "maxAmountRequired": "0.006"
    }
  ],
  "catalog": "https://amanchain-relay.gitajhd.workers.dev/api/x402?net=mainnet (GET) — the full service catalog with prices",
  "version": 1,
  "warning": "This service requires a \"request\" parameter — e.g. 100 AMAN->USDT.",
  "bulletin": {
    "id": "ntc-k5zzar7-bulletin1",
    "comp": null,
    "type": "info",
    "title": "AmanChain x402 bulletin — real examples everywhere, zero-risk quoting",
    "origin": {
      "reason": "platform bulletin published with the v2.37.0 agent-notices release"
    },
    "readAt": null,
    "status": "pending",
    "message": "Since v2.36.0 every one of the 51 services publishes a real, copy-pasteable request example in its catalog entry and 402 quote (requestFormat). Requests that are empty or placeholder text ('optional context', 'test', ...) are refused BEFORE payment with the exact example to use — you are never charged for a malformed request. Agents can also check messages addressed to their wallet at GET /api/x402/notices?address=0xYOUR_WALLET. — AmanChain",
    "createdAt": "2026-09-09T12:30:00.000Z",
    "expiresAt": "2026-09-23T11:10:00.000Z",
    "serviceId": null,
    "deliveredAt": null
  },
  "howToPay": {
    "ui": "Open the AI Agents tab → Invoke — the payment is signed automatically with your session.",
    "api": "POST /api/tx?net=mainnet with { walletId, password, type: 'agent_invoke', serviceId: 'aman-swap-quote', request: '<your request>' } — the node enforces the exact price.",
    "external": "Sign an agent_invoke transaction for 0.006 AMAN to AMb5261ade9f2bf55da5ad3dfe55edd3c71208c8e2475a8bae (chainId 1) and broadcast it on /api/v1/tx, then retry with its txId."
  },
  "priceUsd": 0.00373242,
  "resource": "https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-swap-quote",
  "discovery": {
    "bazaar": "https://amanchain-relay.gitajhd.workers.dev/x402/discovery",
    "llmsTxt": "https://amanchain-relay.gitajhd.workers.dev/llms.txt",
    "services": "https://amanchain-relay.gitajhd.workers.dev/services.json",
    "agentCard": "https://amanchain-relay.gitajhd.workers.dev/.well-known/agent.json",
    "wellKnown": "https://amanchain-relay.gitajhd.workers.dev/.well-known/x402"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "request": "100 AMAN->USDT",
            "serviceId": "aman-swap-quote"
          },
          "type": "http",
          "method": "POST",
          "bodyType": "json"
        },
        "output": {
          "type": "json",
          "example": {
            "feePct": 0.3,
            "amountIn": 100,
            "amountOut": 61.8,
            "priceImpactPct": 0.31
          }
        }
      },
      "schema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "required": [
          "input"
        ],
        "properties": {
          "input": {
            "type": "object",
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "properties": {
              "body": {
                "type": "object",
                "properties": {
                  "request": {
                    "type": "string",
                    "description": "service input (see body example)"
                  },
                  "serviceId": {
                    "type": "string",
                    "description": "the service id, \"aman-swap-quote\""
                  }
                }
              },
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "example": {
                "type": "object",
                "example": {
                  "feePct": 0.3,
                  "amountIn": 100,
                  "amountOut": 61.8,
                  "priceImpactPct": 0.31
                }
              }
            }
          }
        }
      }
    }
  },
  "facilitator": {
    "url": "https://amanchain-relay.gitajhd.workers.dev/api/x402",
    "mode": "node-native",
    "verification": "real agent_invoke transaction mined by AmanChain PoW consensus"
  },
  "x402Version": 1,
  "facilitators": [
    {
      "url": "https://amanchain-relay.gitajhd.workers.dev/api/x402",
      "mode": "node-native",
      "default": true,
      "verification": "real agent_invoke transaction mined by AmanChain PoW consensus"
    },
    {
      "url": "https://api.cdp.coinbase.com/platform/v2/x402",
      "mode": "cdp",
      "note": "USDC on Base via Coinbase — pay with any standard x402 client"
    }
  ],
  "paymentGuide": {
    "primary": "USDC on Base — the x402 standard rail (scheme \"exact\", EIP-3009, gasless via the Coinbase CDP facilitator). Any @x402/fetch or ai-sdk x402 client pays with regular USDC — no AMAN, no account, no API key.",
    "secondary": "AMAN native — sign an agent_invoke transaction for the exact price and POST { serviceId, payment: { txId } } to this endpoint.",
    "usdcHowTo": "From the accepts[] entry with scheme=\"exact\" & network=\"base\": to = payTo, value = maxAmountRequired (micro-USDC, 6 decimals). Sign an EIP-3009 TransferWithAuthorization (EIP-712 domain: name \"USD Coin\", version \"2\", chainId 8453, verifyingContract = asset) and retry the SAME request with the X-PAYMENT header (base64 JSON payload). Get USDC on Base from Coinbase (withdraw → Base network) or bridge.base.org. Gas is paid by the facilitator — you only need USDC."
  },
  "requirements": {
    "asset": "AMAN",
    "payTo": "AMb5261ade9f2bf55da5ad3dfe55edd3c71208c8e2475a8bae",
    "scheme": "aman-x402",
    "txType": "agent_invoke",
    "chainId": 1,
    "network": "mainnet",
    "priceAman": 0.006,
    "serviceId": "aman-swap-quote",
    "serviceName": "Swap Quote",
    "maxTimeoutSeconds": 120
  },
  "requestFormat": "100 AMAN->USDT",
  "requestRequired": true
}

Accepts

The payment requirements as published to the catalog. Read the live 402 before paying — a price here is a claim, not a quote.

0.003732USDC≈ $0.003732 USD
on Base · exact scheme

Pay 0.003732 USDC on Base to 0xfB56…b2f39. The signed payment is good for 2 minutes.

USD Coin contract
0x8335…02913
Payment window
2 minutes
As published
3732 smallest units
Buys
Instant AMM swap quote — exact output amount, price impact and swap fee for any token pair; DeFi exchange-rate and swap pricing API. Deterministic on-chain exec
Returns
application/json
The catalog’s raw entry
[
  {
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "extra": {
      "name": "USD Coin",
      "version": "2"
    },
    "payTo": "0xfB5625d44be488414606773244F0De35410b2f39",
    "amount": "3732",
    "scheme": "exact",
    "network": "eip155:8453",
    "mimeType": "application/json",
    "resource": "https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-swap-quote",
    "recipient": "0xfB5625d44be488414606773244F0De35410b2f39",
    "description": "Instant AMM swap quote — exact output amount, price impact and swap fee for any token pair; DeFi exchange-rate and swap pricing API. Deterministic on-chain exec",
    "maxAmountRequired": "3732",
    "maxTimeoutSeconds": 120
  }
]

Extensions

{
  "bazaar": {
    "info": {
      "input": {
        "body": {
          "request": "100 AMAN->USDT",
          "serviceId": "aman-swap-quote"
        },
        "type": "http",
        "method": "POST",
        "bodyType": "json"
      },
      "output": {
        "type": "json",
        "example": {
          "feePct": 0.3,
          "amountIn": 100,
          "amountOut": 61.8,
          "priceImpactPct": 0.31
        }
      }
    },
    "schema": {
      "type": "object",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "required": [
        "input"
      ],
      "properties": {
        "input": {
          "type": "object",
          "required": [
            "type",
            "method",
            "bodyType",
            "body"
          ],
          "properties": {
            "body": {
              "type": "object",
              "properties": {
                "request": {
                  "type": "string",
                  "description": "service input (see body example)"
                },
                "serviceId": {
                  "type": "string",
                  "description": "the service id, \"aman-swap-quote\""
                }
              }
            },
            "type": {
              "type": "string",
              "const": "http"
            },
            "method": {
              "enum": [
                "POST",
                "PUT",
                "PATCH"
              ],
              "type": "string"
            },
            "bodyType": {
              "enum": [
                "json",
                "form-data",
                "text"
              ],
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "output": {
          "type": "object"
        }
      }
    }
  }
}

Provenance

Seen in the source catalog
2026-09-10 23:02Z
Last indexed by Roundhouse
2026-09-24 10:10Z
Last enriched (probe, favicon, geo)
2026-09-14 03:46Z
x402 version
2
Max timeout
120s
Liveness probe
HTTP 402
Report

Hand this page to an agent

Copy the prompt and paste it into Claude, an MCP client or your own agent — it will vet this service and call it over the free read API. No key, no account.

GET api.roundhouseai.io/v0/endpoints

This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 19 snapshots so far. Verified volume counts only settlements with an on-chain EIP-3009 marker.

Open skill.md
Show the prompt
Using Roundhouse, look up the x402 service Swap Quote and tell me whether it is
worth paying: what a call costs, whether the endpoint answered when last probed, and what
its payment record actually shows.

curl -s 'https://api.roundhouseai.io/v0/endpoints?q=Swap%20Quote'
curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>'

Then call it: read the price from the live 402 at https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-swap-quote, never from
a cached figure, and pay with an x402 client.

The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except
/v0/unified* and /v0/endpoints. Mint a personal key for $0.01 at GET https://api.roundhouseai.io/v0/test/x402,
or use an organization key from https://roundhouseai.io/dashboard/team.

If you do not have Roundhouse tools or skills installed, read
https://roundhouseai.io/skill.md first — it is the whole procedure.