Uniswap V3
Get quote - to specified amount
This endpoint calculates the amount of input tokens required to purchase a specified amount of output tokens from a Uniswap pool.
It also provides the resulting price after the transaction. The calculation takes into account the current pool state and the specified fee tier.
GET
Query Parameters
The chain to use.
Available options:
base:mainnet
, ethereum:mainnet
, arbitrum:mainnet
The symbol of the token to swap from.
Available options:
1INCH
, AAVE
, BAL
, cbBTC
, cbETH
, CRV
, crvUSD
, DAI
, ENS
, ETHx
, FRAX
, FXS
, GHO
, KNC
, LDO
, LINK
, LUSD
, MKR
, osETH
, PYUSD
, rETH
, RPL
, rsETH
, sDAI
, SNX
, STG
, sUSDe
, tBTC
, UNI
, USDC
, USDe
, USDS
, USDT
, WBTC
, weETH
, WETH
, wstETH
, ARB
, EURS
, MAI
, USDCe
, AERO
, EUR
, VIRTUAL
The symbol of the token to swap to.
Available options:
1INCH
, AAVE
, BAL
, cbBTC
, cbETH
, CRV
, crvUSD
, DAI
, ENS
, ETHx
, FRAX
, FXS
, GHO
, KNC
, LDO
, LINK
, LUSD
, MKR
, osETH
, PYUSD
, rETH
, RPL
, rsETH
, sDAI
, SNX
, STG
, sUSDe
, tBTC
, UNI
, USDC
, USDe
, USDS
, USDT
, WBTC
, weETH
, WETH
, wstETH
, ARB
, EURS
, MAI
, USDCe
, AERO
, EUR
, VIRTUAL
The fee to pay for the swap
Available options:
0.01
, 0.05
, 0.3
, 1.0
The amount of the token to swap to
Required range:
x > 0
Response
200
application/json
Successful Response
The response is of type object
.