swap
Swap assets held in the vault using Jupiter DEX.
glam jupiter swap <from> <to> <amount> [options]
Source token mint address or symbol
Destination token mint address or symbol
Decimal-adjusted UI amount to swap
Specify max accounts allowed in the transaction
Slippage in basis points (default: 5 = 0.05%)
Use v1 instruction (default: v2)
Use only direct routes for the swap
Examples:
# Swap 100 USDC to SOL with default slippage
glam jupiter swap USDC SOL 100
# Swap with custom slippage
glam jupiter swap USDC SOL 100 -s 10
# Swap using direct routes only
glam jupiter swap USDC SOL 100 -d
# Skip confirmation
glam jupiter swap USDC SOL 100 -y
view-policy
View the current Jupiter swap policy including max slippage and token allowlist.
Example output:
Max slippage BPS: 50
Swap allowlist:
[0] EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
[1] So11111111111111111111111111111111111111112
set-max-slippage
Set the maximum allowed slippage for swaps in basis points.
glam jupiter set-max-slippage <slippage_bps> [options]
Maximum slippage in basis points (e.g., 50 = 0.5%)
Examples:
# Set max slippage to 0.5%
glam jupiter set-max-slippage 50
# Set max slippage to 1%
glam jupiter set-max-slippage 100 -y
allowlist-token
Add a token to the swap allowlist.
glam jupiter allowlist-token <token> [options]
Examples:
# Add USDC to allowlist
glam jupiter allowlist-token EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
# Add token without confirmation
glam jupiter allowlist-token EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v -y
remove-token
Remove a token from the swap allowlist.
glam jupiter remove-token <token> [options]
Examples:
# Remove token from allowlist
glam jupiter remove-token EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
# Remove without confirmation
glam jupiter remove-token EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v -y
clear-allowlist
Clear the swap allowlist to allow all tokens.
glam jupiter clear-allowlist [options]
Examples:
# Clear allowlist
glam jupiter clear-allowlist
# Clear without confirmation
glam jupiter clear-allowlist -y