{"uid":"cap_P1yPckhHYydwp0mXKqpMX","slug":"amanchain-swap-quote-93ee5950","name":"AmanChain 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>\"}.","url":"https://amanchain-relay.gitajhd.workers.dev/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":{"type":"json"},"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_ymy-zOF8XbQOOgnUfIOJP","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","exampleAgentPrompt":"What's the exact AMM quote for swapping 500 USDC to AMAN right now — give me the expected output amount and price impact based on live pool state.","exampleUseCases":[{"title":"Pre-trade slippage check before swap","prompt":"Before I swap 1 ETH for USDC on the AMM, can you get me the exact quote so I know how much I'll receive and what the price impact will be?"},{"title":"Arbitrage opportunity calculation","prompt":"I want to check if there's a profitable spread right now — get me the exact AMM quote for swapping 10,000 USDC to AMAN and tell me the output amount based on current pool reserves."},{"title":"Bot trade size optimization","prompt":"I'm building an auto-trading strategy — can you pull the deterministic swap quote for converting 0.5 BTC worth of tokens to ETH so I can optimize my trade size before execution?"}],"resultDescription":"Returns an exact, deterministic swap quote computed against live AMM pool state including expected output token amount, effective exchange rate, and price impact for the specified token pair and input amount.","failureModes":["Invalid or unsupported token pair returns an error response","Insufficient pool liquidity for the requested swap size","Malformed JSON body or missing required fields returns a 400-level error","Payment failure or insufficient USDC balance via x402 prevents execution","Network or node sync issues may return stale or unavailable state"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, on-chain AMM swap quote executed against real consensus state — especially for AMAN token pairs or AmanChain-native pools. Prefer this over off-chain price feeds when you need the exact executable output amount including slippage and pool depth, rather than a reference market price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:53:06.385Z","isFirstParty":false}