{"uid":"cap_r1CfFlonweeFAxdZD7-Vr","slug":"amanchain-swap-quote-8a21b251","name":"AmanChain Swap Quote","description":"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.","url":"https://preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai/api/x402/aman-swap-quote","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.031104","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.031104/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.031104","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.031104","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6U35lvDsR63COdrU6E2Dg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.031104","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns an exact AMM swap quote for any token pair, computed deterministically against live on-chain consensus state","exampleAgentPrompt":"What's the exact AMM quote for swapping 1 ETH to USDC right now — pull it from live on-chain state so I know the actual output amount and price impact before I execute?","exampleUseCases":[{"title":"Pre-trade price check for DeFi swap","prompt":"Before I swap 500 USDC to WETH, can you get me an exact AMM quote so I know the expected output amount and price impact?"},{"title":"Arbitrage opportunity detection","prompt":"Quote me swapping 10 WBTC to DAI right now using the live on-chain AMM price — I want to see if there's a spread worth acting on."},{"title":"Token exchange rate comparison","prompt":"What will I actually get if I swap 1000 USDT to ETH today? Give me the exact AMM quote including any price impact."}],"resultDescription":"An exact AMM swap quote including the expected output token amount, exchange rate, price impact percentage, and routing details — computed deterministically against live on-chain pool state and balances at the time of the call.","failureModes":["Token pair not found in any available liquidity pool — returns error with no quote","Insufficient liquidity for the requested swap size — may return partial quote or error","Invalid token address or unsupported token — returns service error","Network or consensus state unavailable — deterministic execution fails","Payment rejected or insufficient USDC balance for x402 payment — call not processed"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, node-executed AMM swap quote backed by live on-chain consensus state rather than an off-chain price feed or cached estimate. Ideal for pre-trade validation, arbitrage detection, or any workflow requiring an exact output amount before committing to a swap. Prefer this over general price APIs when on-chain accuracy and determinism are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:08:21.431Z","isFirstParty":false}