You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
- Wallet-bound options (`swap --from`, `transfer --token`, `reclaim
--token`) now resolve tokens against the user's actual holdings instead
of Jupiter's global search
- Mint address inputs skip the holdings fetch entirely (no performance
cost)
- Symbol inputs that match multiple tokens in the wallet error with
disambiguation options
- Extracted `DatapiClient.getTokensByMints` from duplicated
batch-resolve logic in portfolio/history
Copy file name to clipboardExpand all lines: docs/spot.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,10 @@ Anywhere a token is specified (`--from`, `--to`, `--token`, `--search`), you can
9
9
-**Symbol** (e.g. `SOL`, `USDC`, `JUP`) — the CLI auto-resolves to the best-matching token
10
10
-**Mint address** (e.g. `So11111111111111111111111111111111111111112`) — exact match
11
11
12
-
When using a symbol, the CLI picks the top result from Jupiter's token search. Use a mint address when you need to target a specific token (e.g. to disambiguate tokens with the same symbol).
12
+
Token resolution depends on the context:
13
+
14
+
-**Wallet-bound options** (`swap --from`, `transfer --token`, `reclaim --token`) resolve against the tokens in your wallet. This ensures the CLI matches the token you actually hold, not a different token with the same symbol. If the token is not found in your wallet, the command errors. If multiple tokens share the same symbol, the CLI asks you to use the mint address instead.
15
+
-**All other options** (`swap --to`, `quote --from`, `quote --to`, `tokens --search`, `history --token`) resolve via Jupiter's global token search, picking the top result.
13
16
14
17
## Commands
15
18
@@ -111,7 +114,6 @@ jup spot reclaim --token USDC
111
114
```
112
115
113
116
- With no options, reclaims rent from all empty Associated Token Accounts (ATA) owned by the active key's wallet
114
-
-`--token` accepts a token symbol or mint address to filter which account to reclaim from; ATA balance must be zero to reclaim
0 commit comments