Handles the swap operation for a given account.
The mint address of the input token.
The mint address of the output token.
The amount of input tokens to be exchanged.
The maximum allowable slippage for the transaction, expressed as a percentage. Optional.
The fee in basis points (bps) to be applied to the transaction. Optional.
If true, the transaction will be simulated but not executed. Optional.
If true, the transaction will be broadcast to the network. Optional.
Represents the structure of a response from the Jupiter API.
A promise that resolves to a JupiterAPIResponse containing the result of the swap operation.