Swap - from specified amount
This endpoint allows users to trade a specific amount of one token into another token using the Aerodrome Slipstream protocol.
The transaction is executed by specifying the exact amount of the input token to be sold, and the system calculates the amount of the output token that will be received. The operation ensures that the trade is conducted within the constraints of the current market conditions, taking into account the liquidity and price impact. This endpoint is suitable for users who want to sell a precise quantity of a token and are willing to accept the resulting amount of the other token.
Body
Request model for selling 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 from
x > 0
1.5
The chain to use.
base:mainnet
, ethereum:mainnet
, arbitrum:mainnet
The address of the transaction sender
The minimum amount of the token to swap to, defaults to 0
x >= 0
1.4
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?