Swap - into specified amount
This endpoint facilitates the trading of tokens by allowing users to specify the exact amount of the output token they wish to receive.
Utilizing the Aerodrome Slipstream protocol, the system calculates the necessary amount of the input token required to achieve the desired output. This operation is particularly useful for users who have a specific target amount of the output token in mind and are willing to provide the corresponding input token amount. The transaction is executed with consideration of current market conditions, including liquidity and price impact, ensuring that the trade is completed efficiently and effectively.
Body
Request model for buying exactly an amount of tokens.
The symbol of the token to swap from Note the supported tokens per chain.
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 Note the supported tokens per chain.
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 tick spacing of the pool
x >= 1
100
The amount of the token to swap to
x > 0
1.5
The maximum amount of the token to swap from
x >= 0
1.6
The chain to use.
base:mainnet
, ethereum:mainnet
, arbitrum:mainnet
The address of the transaction sender
Response
The chain id of the transaction
The data of the transaction
The sender of the transaction
The gas of the transaction
The recipient of the transaction
The value of the transaction
The nonce of the address
The max fee per gas of the transaction
The max priority fee per gas of the transaction
Was this page helpful?