prepareSwapTransactions
See the full code here.
prepareSwapTransactions( params: SwapParams, userAddress: string, slippageBps: number | bigint, swapQuote: SwapQuote,): Promise<SwapTransactions>
Returns
Returns a Promise
that, when resolved, provides the necessary transactions to perform the swap.
type SwapTransactions = string[];
Parameters
# The set of parameters used for executing the swapparams: SwapParams# The address performing the transactionuserAddress: string# The slippage percentage to perform the transactionslippageBps: number | bigint# The object returned from fetchSwapQuoteswapQuote: SwapQuote