Reference
Last updated
Last updated
Gets a quote for a swap between two tokens given an amount. If a to
address is provided, the swap execution data will be included in the response to be used to build the calldata to be executed on-chain. Make sure to not tamper with the arguments provided in the response as it can lead to loss of funds. Only possible to trade whitelisted tokens specified on the /tokens
endpoint. Permissionless trading is coming soon. Native token (BERA) is specified as zero address (0x0000000000000000000000000000000000000000
)
Input token address
0x7EeCA4205fF31f947EdBd49195a7A88E6A91161B
^0x(.*)$
Output token address
0x7EeCA4205fF31f947EdBd49195a7A88E6A91161B
^0x(.*)$
Amount of input token
Amount of input token
Amount of input token
Recipient address, if not set, calldata cannot be generated
0x7EeCA4205fF31f947EdBd49195a7A88E6A91161B
^0x(.*)$
Slippage tolerance in decimal between 0 (0%) and 1 (100%), default 0.02 (=2%)
0.01
Slippage tolerance in decimal between 0 (0%) and 1 (100%), default 0.02 (=2%)
Slippage tolerance in decimal between 0 (0%) and 1 (100%), default 0.02 (=2%)
Specify which liquidity sources to use on path finding. Otherwise all will be used by default
Specify which liquidity sources to not use on path finding. Otherwise all will be used by default
Partner referral code
Partner referral code
Partner referral code