{"uid":"cap_yARJq2CxyXlyQtCdMghN1","slug":"amanchain-swap-quote-61cd13f4","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-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai/api/x402/aman-swap-quote","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"body":{"type":"object"}}},"output":{"type":"object","properties":{"example":{"type":"object","example":{"ok":true}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003732","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.003732/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003732","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003732","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LNj8_J0JJ0H-Tr8NpR5y_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003732","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 using live on-chain consensus state on AmanChain","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Pre-trade price check for token swap","prompt":"Before I execute this trade, can you get me an exact AMM quote for swapping 500 USDC into WETH on AmanChain? I want to know exactly how much I'll receive and the current rate."},{"title":"Compare swap rates across token pairs","prompt":"I'm trying to decide between two trades — can you get me AmanChain swap quotes for 1000 USDC to ETH and 1000 USDC to BTC so I can compare the rates?"},{"title":"Estimate price impact for large trade","prompt":"I want to swap 50,000 USDC worth of tokens on AmanChain — can you get me the AMM quote so I can see how bad the price impact will be before I commit?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:44:38.366Z","isFirstParty":false}