Quote a swap (read-only)
Estimate the output of a swap without building a transaction.
Returns the expected amount of token_out received for selling amount_in
of token_in, routed via 1inch. This is read-only: it does not build a
transaction, require an account, or check balances.
Use it to gauge exit liquidity and price impact for a token before entering a position — for example, to warn when a market’s underlying asset cannot be swapped back to a stablecoin without large slippage.
Query Parameters
Target blockchain network. The chain to use.
base, ethereum, arbitrum, hyperevm, tempo Token to sell (input). A token symbol (e.g. 'WETH') or any token address.
Token to buy (output). A token symbol (e.g. 'USDC') or any token address.
Optional Pendle SY (Standardized Yield) address. When provided, token_in is overridden with the token the PT actually redeems into on withdrawal (the SY asset if it is a valid token-out, else the SY yield token) — use this to gauge a Pendle position's real exit liquidity rather than the reported underlying.
Human-readable amount of token_in to quote (token units, not wei).
x > 0Maximum slippage tolerance as a percentage (e.g., 1 = 1%).
x >= 0Response
Successful Response
Estimated output of a read-only swap quote.
Estimated amount of token_out received, in human-readable units. Zero when no route / insufficient liquidity exists for the pair.
The token address actually quoted as input. Usually the requested token_in; for Pendle (when sy_address is supplied) it is the resolved redeem token, which callers should use to value the input.
The token address quoted as output — what amount_out is denominated in (the resolved token_out from the request).