{"uid":"cap_IRGAlKwuo9JSLVfb3Z23V","slug":"saylor-innovations-defi-swap-quote-comparator-8fe7e5e5","name":"Saylor Innovations DeFi Swap Quote Comparator","description":"Compare Paraswap and KyberSwap quotes for an EVM token swap on 7 chains - output amount, USD value, gas, best aggregator and advantage in basis points","url":"https://saylorinnovations.com/api/defi/swap-quote?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","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["from","to","amount"],"properties":{"to":{"type":"string","description":"Token symbol or address to buy"},"from":{"type":"string","description":"Token symbol or address to sell"},"chain":{"type":"string","description":"ethereum (default), base, arbitrum, optimism, polygon, bsc, avalanche"},"amount":{"type":"string","description":"Amount of the from token in whole units, e.g. 1.5"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["chain","best","quotes"],"properties":{"to":{"type":"object","properties":{"symbol":{"type":["string"]},"address":{"type":["string"]}},"description":"End of the range","additionalProperties":true},"best":{"type":"string","description":"Aggregator that returns the most output tokens"},"from":{"type":"object","properties":{"amount":{"type":["integer"]},"symbol":{"type":["string"]},"address":{"type":["string"]}},"description":"Start of the range","additionalProperties":true},"note":{"type":"string","description":"Caveat or context for reading the result"},"chain":{"type":"string","description":"Blockchain the data is for"},"quotes":{"type":"array","items":{"type":"object","properties":{"dexes":{"type":["array","null"],"items":{"type":"string"},"description":"DEXes and pools used in the route"},"gas_usd":{"type":"number","description":"Gas, in US dollars"},"usd_out":{"type":"number","description":"Usd out"},"aggregator":{"type":["string","null"],"description":"Aggregator that returned the quote"},"amount_out":{"type":"number","description":"Amount out"},"price_impact_note":{"type":"null","description":"Price impact note"}},"additionalProperties":true},"description":"One quote per aggregator with output amount, USD value, gas estimate and DEXes used"},"source":{"type":"string","description":"Data source the values come from"},"checked_at":{"type":"string","description":"Time the check was run (UTC)"},"best_amount_out":{"type":"number","description":"Best amount out"},"effective_price":{"type":"number","description":"Effective price"},"advantage_over_next_bps":{"type":["number","null"],"description":"Advantage over next, in basis points"}},"additionalProperties":true},"description":{"type":"string"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4ZN1qOf4w1x9xej9rVvKh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares Paraswap and KyberSwap DEX aggregator quotes for an EVM token swap across 7 chains, returning output amount, USD value, gas cost, best aggregator, and advantage in basis points","exampleAgentPrompt":"Compare Paraswap and KyberSwap swap quotes for selling 1.5 ETH to USDC on Arbitrum — show me the output amount, USD value, gas cost, and which aggregator wins and by how many basis points.","exampleUseCases":[{"title":"Best aggregator for large ETH swap","prompt":"I want to swap 5 ETH for USDC on Ethereum mainnet — can you check both Paraswap and KyberSwap and tell me which gives me more USDC and how much gas each will cost?"},{"title":"Cross-chain arbitrage route check","prompt":"Compare swap quotes for converting 1000 USDC to WMATIC on Polygon using Paraswap and KyberSwap — which one gives a better output and what's the advantage in basis points?"},{"title":"Gas-efficient swap on Layer 2","prompt":"I'm planning to swap 0.5 WBTC to ETH on Optimism — check both DEX aggregators and tell me the best rate, USD value out, and which one has lower gas fees."}],"resultDescription":"Returns a JSON object with the blockchain name, best aggregator identifier, best output amount, an array of quotes (one per aggregator) each containing output token amount, USD value, gas cost in USD, DEX route used, and price impact note, plus an effective price and note field with context for interpreting results.","failureModes":["Unsupported token symbol returns empty or error quote","Chain not in supported list (ethereum, base, arbitrum, optimism, polygon, bsc, avalanche) causes error","Aggregator API timeout results in null quote for that provider","Very large or very small amounts may return no liquidity / null route","Missing required query params (from, to, amount) returns 400-style error","Token address typo yields no route found"],"whenToPreferThis":"Choose this endpoint when you need a side-by-side comparison of Paraswap and KyberSwap quotes for a specific EVM token swap, especially when optimizing for best output amount or lowest gas cost across the 7 supported chains. It is ideal for pre-trade analysis, routing decisions, or surfacing the basis-point advantage of one aggregator over another without executing a transaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-28T12:49:48.067Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-defi-swap-quote-comparator-8fe7e5e5"}