Skip to content

feat: resolve tokens args from user holdings - #8

Merged
AaronCQL merged 1 commit into
mainfrom
feat/resolve-tokens-from-holdings
Mar 20, 2026
Merged

feat: resolve tokens args from user holdings#8
AaronCQL merged 1 commit into
mainfrom
feat/resolve-tokens-from-holdings

Conversation

@AaronCQL

Copy link
Copy Markdown
Contributor

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

For commands where the token comes from the user's wallet (swap --from,
transfer --token, reclaim --token), resolve against the user's actual
holdings instead of Jupiter's global token search. This ensures the CLI
matches the token the user holds, not a different token with the same
symbol. Mint address inputs skip the holdings fetch entirely.
@AaronCQL
AaronCQL merged commit 45ce716 into main Mar 20, 2026
4 checks passed
@AaronCQL
AaronCQL deleted the feat/resolve-tokens-from-holdings branch March 20, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant