What does a DEX quote return from KyberSwap routes?
A DEX aggregator quote API returns an expected output, route, gas estimate and router address. The quote is an off-chain estimate, not a signed transaction.
Crypto News Newsroom3 min read

A DEX aggregator quote API returns an expected output amount, a route through liquidity pools, estimated gas and a router address; it calculates these from current pool state off-chain. Use the quote to assess a swap, then request transaction data separately before execution.
KyberSwap’s routes endpoint takes a chain, tokenIn and tokenOut addresses, and amountIn in the input token’s base units. The supported networks vary by aggregator; KyberSwap publishes its kyberswap supported chains for choosing the chain path.
Which fields come back from a route quote?
KyberSwap’s GET /{chain}/api/v1/routes response puts the quote in routeSummary and returns routerAddress alongside it. The summary includes amountIn and amountOut in token base units, plus amountInUsd and amountOutUsd estimates.
The route field describes the pool legs: which pools the swap uses and how tokens move between them. A route can contain multiple hops, and a trade can be split across routes. Read those legs when you need to display where liquidity comes from or understand how the aggregator reaches its output estimate.
Gas is an estimate in units, not a token amount or a dollar cost. Multiply it by the gas price to estimate the native-token fee; the response also provides gasPrice and gasUsd to help calculate or display that cost.
The routerAddress identifies the contract that will receive the eventual swap call. Its presence does not mean the response is a transaction: a routes quote contains no signed transaction and no slippage floor for amountOut.
What must you request before execution, and what can fail?
To prepare a KyberSwap swap, POST the returned routeSummary to /{chain}/api/v1/route/build with the sender, recipient and slippageTolerance. That separate build response supplies calldata and the minimum output derived from the slippage setting. The floor matters: the quoted amountOut is an estimate at quote time, while the minimum output sets the condition the swap must satisfy when it executes.
Say a wallet requests a route for a fixed amount of token A into token B. It can show amountOut, the USD estimate and gas cost, then let the user decide whether to proceed. If accepted, the application chooses a slippage tolerance and asks the build endpoint for calldata and the minimum output. It can then construct a transaction for the returned router address. A quote alone cannot be submitted as that transaction.
Requests can fail when no route is found, a token is unsupported on the chosen network, or the API rate limit is reached; handle the returned error code rather than parsing those responses as successful route data. Even a successful quote can become stale as pool state changes, so a route may revert by execution time.
Aggregator APIs differ in what they call a quote. The 1inch Swap API’s quote response includes dstAmount without transaction data, while 0x separates indicative pricing through its /price endpoint from its firm /quote endpoint. Check the endpoint’s response contract before assuming that “quote” means either a price only or executable transaction data.
Use the route response to compare expected output, path and estimated cost; when the user is ready to swap, request a build with an explicit slippage tolerance and use its calldata and minimum output.