User's wallet address
Transaction object to build
Source coin address
Target coin address
Input coin for the swap
Amount to swap
OptionalminAmountOut: numberMinimum output amount (slippage protection). Will be ignored if slippage is provided in swapOptions. Optional, deprecated - use swapOptions.slippage instead.
OptionalapiKey: stringAPI key for aggregator access
Swap configuration options. If slippage is provided, it will be used to calculate minAmountOut instead of the minAmountOut parameter.
Transaction result representing the output coin
Performs a complete swap operation
This function orchestrates the entire swap process including: