instantTrades
object located in the SDK instance. Inside the object is the calculateTrade
method, which takes the input token, the input swap amount, the output token address, and the transaction parameters.InstantTrade
object or InstantTradeError
object. Both contains DEX type, but first contains the trade and the second contains error reason. Example:crossChain
object, located in the SDK instance. Inside the object is the calculateTrade
method, which takes the input token, the input swap amount, the output token, and the transaction parameters.WrappedCrossChainTrade
object.