RoutesRequest
object describes a desired any-to-any transfer and contains all information necessary to calculate the most efficient routes. It is defined by the following interface.fromTokenAddress
must be the correct address for the specified fromChainId
as the token address changes for a given chain. The same has to be taken into consideration for the toTokenAddress
and the toChainId
. The optional properties fromAddress
and toAddress
specify where the token is coming from and where the SDK will send it to once the transaction is completed. routesRequest
object, you can pass it to the getRoutes
functions to start calculating the routes.getRoutes
returns a RoutesReponse
which contains a list of routes for the described transfer. If an order
was specified as part of the RouteOptions object, the resulting list would be sorted accordingly.Bridge and swap 1 USDT on xDai to the maximum amount of USDC on BSC.