Batch Route Params

Parameter nameTypeDescription

amounts *

[string]

amounts of tokens to sell, for 1 Eth and 1 Wtbc set as [1000000000000000000, 100000000]

tokenInAddresses *

[string]

contract addresses of tokenss to sell e.g.: [0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7,

0x03fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac]

tokenOutAddresses*

[string]

contract address of a token to buy e.g.: [0x053c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8] (just one output token supported for now)

reverse

boolean

Default false. it's not supported yet.

direct

boolean

Default false. If it's true direct route

excludeProtocols

[string]

The protocol IDs you want to exclude from liquidity sources (MySwap:1, JediSwap:2, 10kSwap:3, SithSwap:4, Ekubo:5)

Description of response parameters

Last updated