RoutesRequestobject 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.
fromTokenAddressmust be the correct address for the specified
fromChainIdas the token address changes for a given chain. The same has to be considered for the
toChainId. The optional properties
toAddressspecify where the token comes from and where the SDK will send it to once the transaction is completed.
routesRequestobject, you can pass it to the
getRoutesfunctions to start calculating the routes.
RoutesReponsewhich contains a list of routes for the described transfer. If an
orderwas 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.