jupiterSwap sub-client enables token swaps through the Jupiter aggregator for GLAM vaults.
Jupiter integration requires a Jupiter API key. Configure it when initializing the client:
Swap
Execute a token swap through Jupiter. Theswap method accepts Jupiter quote parameters, a quote response, or pre-built swap instructions:
Swap with Quote Response
If you have already fetched a Jupiter quote, pass it directly:Swap with Pre-built Instructions
For full control, pass pre-built swap instructions:Transaction Options
PassTxOptions to customize the swap transaction: