{"uid":"cap_1XhUPWMYRhRqMc7LMWTyZ","slug":"vybe-solana-swap-quote-b01d572e","name":"Vybe Solana Swap Quote","description":"Returns the expected output amount, swap rate, and slippage threshold for a given token pair and amount. Quotes are sourced through internal pool scanning using vetted liquidity criteria combined with external aggregators to maximize route coverage—prioritizing direct pools and vetted markets first.\n\nThis route is currently in beta and is subject to change.","url":"https://x402-api.vybenetwork.xyz/v4/trading/swap-quote?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["amount","inputMintAddress","outputMintAddress"],"properties":{"amount":{"type":"number","format":"double","description":"Amount of input token to swap (in UI units, e.g., 0.1 for 0.1 SOL)"},"slippage":{"type":"number","format":"double","nullable":true,"description":"Slippage tolerance in percentage (default: 0.5)"},"accountAddress":{"type":"string","nullable":true,"description":"Wallet address (used for personalized routing)"},"inputMintAddress":{"type":"string","format":"pubkey","description":"Mint address of the input token"},"outputMintAddress":{"type":"string","format":"pubkey","description":"Mint address of the output token"}}},"responseSchema":{"type":"object","required":["inputMintAddress","inAmount","outputMintAddress","outAmount","otherAmountThreshold","swapMode","priceImpactPct","routePlan","outAmountUi","otherAmountThresholdUi","swapRate"],"properties":{"inAmount":{"type":"string","description":"Input amount in base units (lamports)"},"swapMode":{"type":"string","description":"Swap mode (e.g., \"ExactIn\")"},"swapRate":{"type":"number","format":"double","description":"Exchange rate (output per 1 input token)"},"outAmount":{"type":"string","description":"Expected output amount in base units"},"routePlan":{"type":"array","items":{"type":"object","required":["swapInfo","percent"],"properties":{"bps":{"type":"integer","format":"int32","nullable":true,"description":"Basis points"},"percent":{"type":"integer","format":"int32","description":"Percentage of the swap"},"swapInfo":{"type":"object","required":["ammKey","label","inputMintAddress","outputMintAddress","inAmount","outAmount","feeAmount","feeMintAddress"],"properties":{"label":{"type":"string","description":"Label/name of the DEX"},"ammKey":{"type":"string","description":"AMM key identifier"},"inAmount":{"type":"string","description":"Input amount in base units"},"feeAmount":{"type":"string","description":"Fee amount in base units"},"outAmount":{"type":"string","description":"Output amount in base units"},"feeMintAddress":{"type":"string","description":"Fee token mint address"},"inputMintAddress":{"type":"string","description":"Input token mint address"},"outputMintAddress":{"type":"string","description":"Output token mint address"}}}}},"description":"Route plan with swap information"},"timeTaken":{"type":"number","format":"double","nullable":true,"description":"Time taken to compute quote"},"contextSlot":{"type":"integer","format":"int64","minimum":0,"nullable":true,"description":"Context slot"},"outAmountUi":{"type":"number","format":"double","description":"Output amount in UI units (human-readable)"},"platformFee":{"nullable":true,"description":"Platform fee"},"slippageBps":{"type":"integer","format":"int32","nullable":true,"description":"Slippage in basis points"},"swapUsdValue":{"type":"string","nullable":true,"description":"USD value of the swap"},"priceImpactPct":{"type":"string","description":"Price impact percentage"},"otherRoutePlans":{"nullable":true,"description":"Other route plans"},"inputMintAddress":{"type":"string","description":"Input mint address"},"simplerRouteUsed":{"type":"boolean","nullable":true,"description":"Whether simpler route was used"},"outputMintAddress":{"type":"string","description":"Output mint address"},"instructionVersion":{"nullable":true,"description":"Instruction version"},"loadedLongtailToken":{"type":"boolean","nullable":true,"description":"Whether longtail token was loaded"},"otherAmountThreshold":{"type":"string","description":"Minimum output considering slippage (base units)"},"otherAmountThresholdUi":{"type":"number","format":"double","description":"Minimum output in UI units"},"mostReliableAmmsQuoteReport":{"allOf":[{"type":"object","required":["info"],"properties":{"info":{"type":"object","description":"Quote information from reliable AMMs","additionalProperties":{"type":"string"}}}}],"nullable":true},"useIncurredSlippageForQuoting":{"nullable":true,"description":"Use incurred slippage for quoting"}}},"example":null,"exampleRequest":null,"tags":["x402","finance"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.012","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_j_hmphm19jU1vZy9ogS1Y","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.012","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a swap quote for exchanging one Solana token for another, including routing, expected output amount, and price impact.","exampleAgentPrompt":"Using Vybe's swap quote endpoint, get me a quote for swapping 0.5 SOL (mint So11111111111111111111111111111111111111112) to USDC (mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v) with 1% slippage tolerance.","exampleUseCases":null,"resultDescription":"Returns a SwapQuote object containing the expected output amount, price impact, fee details, routing path through DEX pools, and exchange rate for the requested token pair and input amount.","failureModes":["Invalid or non-existent mint address returns an error","Insufficient liquidity for the requested token pair or amount","Amount of zero or negative returns validation error","Payment not provided or insufficient USDC via x402 returns 402 Payment Required","Network congestion may cause stale quote data","Unsupported token pairs with no DEX liquidity path"],"whenToPreferThis":"Use this endpoint when you need a real-time swap quote for Solana SPL tokens before executing a trade, want to compare expected output across token pairs, or need routing information for a Solana DEX swap. Prefer this over generic price feeds when you need slippage-aware, route-specific quotes rather than simple spot prices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:40:06.799Z","isFirstParty":false,"canonicalSlug":"vybe-solana-swap-quote-b01d572e"}