Skip to main content
Commands for swapping tokens using Jupiter aggregator.
The JupiterSwap integration must be enabled before using these commands:

Swap

Swap tokens held in the vault using Jupiter.
  • from: Source token (mint address or symbol like SOL, USDC)
  • to: Destination token (mint address or symbol)
  • amount: Amount to swap (in source token units)
  • --slippage-bps, -s: Slippage tolerance in basis points (default: 5, which is 0.05%)
  • --max-accounts, -m: Maximum accounts allowed in the swap route
  • --only-direct-routes, -d: Only use direct swap routes
  • --use-v2: Use Jupiter v2 instruction
Example: Swap 1 SOL to USDC:
Example: Swap with custom slippage:

Policy Management

Jupiter swap policies allow you to restrict which tokens can be swapped and set maximum slippage limits.

View Policy

View the current Jupiter swap policy for the vault.

Set Maximum Slippage

Set the maximum allowed slippage for swaps in basis points.
  • slippage_bps: Maximum slippage in basis points (e.g., 100 = 1%)

Allowlist Token

Add a token to the swap allowlist. When tokens are allowlisted, swaps are restricted to only those tokens.

Remove Token from Allowlist

Remove a token from the swap allowlist.

Clear Allowlist

Clear the swap allowlist to allow swapping any token.