{"uid":"cap_yK_IKbzZ-UHmYK_23wUdF","slug":"x402-defi-intel-swap-quote-f563fc1b","name":"x402 DeFi Intel – Swap Quote","description":"Crypto-agent toolkit: cross-chain DeFi intelligence + execution helpers + retrieval for agents. 16 endpoints: funding, open interest, long/short, token-safety, yield, prices, gas, tx-simulate, approval-check, bridge-quote, governance-search, lending, liquidations, protocol-search, swap-quote, token-resolve. Pay-per-call via x402.","url":"https://cryptodefidataintel-production.up.railway.app/api/swap-quote","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":["inputMint","outputMint","amount"],"properties":{"amount":{"type":"string"},"inputMint":{"type":"string"},"outputMint":{"type":"string"},"slippageBps":{"type":"integer"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{"inAmount":"1000000","outAmount":"6900000","routeLabels":["Orca"],"priceImpactPct":0.02},"signal":"low_price_impact","insight":"Best route via Orca.","sources":["jupiter"],"confidence":0.8}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vVANV9i7U3zi28h-00V0N","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a cross-chain swap quote including input/output token amounts, best route, price impact, and routing signal for a given token pair and amount.","exampleAgentPrompt":"What's the best swap quote to convert 1,000,000 USDC (inputMint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v) to SOL (outputMint: So11111111111111111111111111111111111111112) with a slippage tolerance of 50 basis points?","exampleUseCases":[{"title":"Check price impact before swapping","prompt":"Before I swap 500 SOL to BONK, can you check the price impact and tell me if the route looks clean? I don't want to get wrecked by slippage on a large trade."},{"title":"Find best DEX route for tokens","prompt":"What's the best route and expected output if I swap 10,000 USDC to JTO right now? I want to know which DEXes are involved and whether the price impact is acceptable before I pull the trigger."},{"title":"Compare swap feasibility across aggregators","prompt":"I'm thinking of swapping 2 SOL into RAY — can you get me a quote with the confidence score and aggregator sources so I can see if it's worth executing at current rates?"}],"resultDescription":"Returns a JSON object with the swap route details: inAmount and outAmount in base units, routeLabels showing which DEX(es) are used (e.g. Orca), priceImpactPct as a percentage, a signal string (e.g. 'low_price_impact'), a human-readable insight string, confidence score (0–1), and sources array indicating which aggregators were queried.","failureModes":["Missing required parameters (inputMint, outputMint, amount) returns a 400 error","Invalid or unrecognized mint addresses return an error or empty route","No liquidity available for the token pair returns null outAmount or error","High price impact trades may return a 'high_price_impact' signal warning","Payment not provided or invalid x402 payment header returns 402 Payment Required","Service temporarily unavailable returns 5xx error"],"whenToPreferThis":"Use this endpoint when you need a real-time DEX swap quote on Solana with route intelligence and price impact analysis — especially when you want aggregated routing across multiple DEXes (like Orca, Raydium) with a confidence signal, rather than querying a single DEX directly. Ideal for agents that need to evaluate swap feasibility before execution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T06:40:11.667Z","isFirstParty":false}