{"uid":"cap_fEkTK9OQQLJqySI-4wGUM","slug":"x402helper-xyz-swap-price-quote-9177a56f","name":"x402helper.xyz Swap Price Quote","description":"X402 micropayments server — AI agents pay USDC for OFAC screening, rates, and billing verification.","url":"https://x402helper.xyz/89e509/swap/price?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["tokenIn","tokenOut","amountIn"],"properties":{"tokenIn":{"type":"string","default":null,"description":"Sell token: a supported symbol (WETH, USDC, AERO, ...) or a 0x ERC-20 address on Base."},"amountIn":{"type":"string","default":null,"description":"Sell amount in RAW atomic units of tokenIn (e.g. 1 WETH = 1000000000000000000). Integer as string."},"tokenOut":{"type":"string","default":null,"description":"Buy token: a supported symbol or a 0x ERC-20 address on Base."},"slippageBps":{"type":"integer","default":null,"description":"Max slippage in basis points (50 = 0.5%). Default 50, max 5000."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.013","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.013/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.013","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.013","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_W0QaFP2phDKoOS6K4RQ81","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.013","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a price quote for swapping one ERC-20 token for another on Base via a micropayment-gated endpoint costing $0.013 USDC per call.","exampleAgentPrompt":"What's the current swap price to sell 1 WETH (1000000000000000000 raw units) for USDC on Base, with a maximum slippage of 50 basis points?","exampleUseCases":[{"title":"Pre-trade price check for DeFi swap","prompt":"Before I swap, can you check how much USDC I'd get for selling 0.5 WETH on Base right now? Use 50 basis points max slippage."},{"title":"Arbitrage rate comparison across tokens","prompt":"What's the current exchange rate if I swap 1000000 USDC (in raw units) for AERO on Base with default slippage?"},{"title":"Best price estimate before large token trade","prompt":"I'm about to sell 5 WETH for USDC on Base — can you get me a price quote first with 100 basis points slippage tolerance so I know what to expect?"}],"resultDescription":"A JSON object with a success flag and a result object containing the swap price quote, including the expected output token amount for the given input amount and token pair on Base network.","failureModes":["Invalid or unsupported tokenIn/tokenOut symbol or address returns an error","amountIn not provided as a raw integer string causes parsing failure","Slippage exceeds 5000 bps (50%) triggers validation error","OFAC screening failure blocks the request","Payment of 0.013 USDC not included or rejected causes 402 Payment Required response","Network or liquidity issues may return empty or zero quotes"],"whenToPreferThis":"Use this endpoint when you need a real-time swap price quote for ERC-20 token pairs on Base network and are operating in an x402 micropayment-enabled agent environment. Prefer this over manual DEX aggregator queries when your agent already handles USDC micropayments via x402 protocol and needs a simple GET-based quote with OFAC compliance built in.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-07T06:47:24.737Z","isFirstParty":false,"canonicalSlug":"x402helper-xyz-swap-price-quote-9177a56f"}