Understanding the route response
Last updated
Last updated
This is the total price impact of all trades across a route.
We return an object containing a description of the fees which the Axelar network charges for making the cross chain transactions possible. We return the relevant depending on what the route will require.
route.estimate.route
There will be objects fromChain and toChain, each of which contain an array of calls which will be executed by the Squid Multicall contract on each chain. These calls can be type as "SWAP"
, "BRIDGE"
or "CUSTOM"
. Squid's backend will generate a combination of the three to get tokens from A to B. If a user has requested a customContractCall
in their request, they should see their call appear in toChain
at the end of the array, with "type" = "CUSTOM"