{"uid":"cap_6pQOGghIQaNdLtLwHkmNg","slug":"solmachina-dex-quote-3ee2f72a","name":"SolMachina DEX Quote","description":"Before an AI agent executes on Solana, it asks SolMachina: risk + a decision (EXECUTE/REVIEW/REJECT) + an SMRI score + a signed receipt, paid per call over x402 in USDC. Trust-first — cites every source, says 'unknown' over guessing. No account, no API key.","url":"https://api.solmachina.com/v1/dex-quote","method":"GET","headers":{},"bodySchema":{"type":"object","required":["amount","inputMint","outputMint"],"properties":{"amount":{"type":"string","description":"Amount of inputMint in its base units (lamports for SOL, 1e6 per USDC)."},"inputMint":{"type":"string","description":"Base58 mint you are selling, e.g. So11111111111111111111111111111111111111112 (SOL)."},"outputMint":{"type":"string","description":"Base58 mint you are buying, e.g. EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v (USDC)."},"slippageBps":{"type":"integer","description":"Slippage tolerance in basis points for min-received, 0-5000 (default 50 = 0.5%)."}}},"responseSchema":{"type":"object","properties":{"route":{"type":"object","properties":{"hops":{"type":"integer"},"path":{"type":"array","items":{"type":"object","properties":{"amm":{"type":"string"}}}}}},"output":{"type":"object","properties":{"amount":{"type":"string"},"minReceived":{"type":"string"},"swapUsdValue":{"type":"number"}}},"priceImpact":{"type":"object","properties":{"pct":{"type":"number"},"band":{"type":"string"}}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DIh-_O0-0Xoq7OBgdL-be","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a real-time DEX swap quote on Solana, including optimal routing, output amount, minimum received, and price impact for a given token pair and amount.","exampleAgentPrompt":"What's the best DEX quote to swap 1 SOL (So11111111111111111111111111111111111111112) for USDC (EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v) on Solana right now, with a slippage tolerance of 50 basis points?","exampleUseCases":[{"title":"Pre-trade price impact check","prompt":"Before I execute a swap, show me the price impact and minimum USDC I'd receive if I sell 500 SOL on Solana DEXes — use 100 bps slippage tolerance so I can see the worst case."},{"title":"Best route discovery for SPL token","prompt":"I want to swap 10,000 USDC for BONK on Solana — what's the optimal AMM routing path and how many hops will it take? Use the default slippage."},{"title":"Agent arbitrage opportunity assessment","prompt":"Get me a real-time DEX quote to swap 1,000,000 lamports of SOL into USDC and tell me the price impact band — I need to decide if this trade is worth executing right now."}],"resultDescription":"Returns a JSON object containing the optimal swap route (number of hops and AMM path), output amount in the target token's base units, minimum received amount accounting for slippage, estimated swap USD value, and price impact as both a percentage and a qualitative band (e.g. low/medium/high).","failureModes":["Invalid or unrecognized mint address returns an error — ensure both inputMint and outputMint are valid Base58 Solana token addresses","Amount of zero or non-numeric string may cause a validation error","slippageBps outside 0–5000 range is rejected","No liquidity available for the requested token pair results in a route-not-found error","Network congestion or Solana RPC issues may cause timeouts","Payment failure via x402 (insufficient USDC balance) blocks the request"],"whenToPreferThis":"Choose this endpoint when you need a real-time, source-cited DEX quote on Solana without requiring an API key or account — ideal for AI agents that pay per call via x402 USDC micropayments. Prefer this over CEX price feeds when you need on-chain routing intelligence, AMM path breakdown, and price impact analysis for Solana SPL token swaps.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:35:46.530Z","isFirstParty":false}