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
0x0000000000000000000000000000000000000000
Example: 0x6969696969696969696969696969696969696969
Pattern: ^0x(.*)$
Output token address
0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce
Example: 0x6969696969696969696969696969696969696969
Pattern: ^0x(.*)$
Amount of input token
1000000000000000000
Amount of input token
0
Amount of input token
1000000000000000000
Recipient address, if not set, calldata cannot be generated
0x6969696969696969696969696969696969696969
Pattern: ^0x(.*)$
Slippage tolerance in decimal between 0 (0%) and 1 (100%), default 0.02 (=2%)
0.02
Example: 0.01
Slippage tolerance in decimal between 0 (0%) and 1 (100%), default 0.02 (=2%)
0
Example: 0.01
Slippage tolerance in decimal between 0 (0%) and 1 (100%), default 0.02 (=2%)
0.02
Example: 0.01
Specify which pool addresses to not use on path finding. Otherwise all will be used by default. Becareful as some pools share the same poolAddress and the blacklist will ignore multiple pools
0x6969696969696969696969696969696969696969
Partner referral code
Partner referral code
0
Partner referral code