Skip to main content
The 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. The swap 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

Pass TxOptions to customize the swap transaction: