feat(cli): add --chains comma list for balances#81
Open
yashh-d wants to merge 1 commit into0xPolygon:mainfrom
Open
feat(cli): add --chains comma list for balances#81yashh-d wants to merge 1 commit into0xPolygon:mainfrom
yashh-d wants to merge 1 commit into0xPolygon:mainfrom
Conversation
yashh-d
added a commit
to yashh-d/polygon-agent-cli
that referenced
this pull request
Apr 15, 2026
- polygon-agent withdraw: POOL/UNDERLYING path + Pool.withdraw; ERC-4626 redeem (max or underlying via convertToShares) - Document in README, skills, polygon-defi; CHANGELOG Unreleased - fix: strip trailing slash in getExplorerUrl for explorer links Note: branch includes feat/balances-chains base if PR 0xPolygon#81 is not merged yet; happy to rebase after. Made-with: Cursor
0439703 to
563e6a1
Compare
- Parallel Sequence indexer fan-out per chain (max 20) - JSON shape: multiChain + chains[] when 2+ chains; flat unchanged otherwise - Document in README and agent skills (incl. connector-ui copies)
563e6a1 to
0a4f50c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
--chains polygon,base,...topolygon-agent balancesso agents can query the same wallet across multiple chains in one JSON response (parallel Sequence indexer calls, max 20 chains).cc @JamesLawton for review when you have a moment.
Behavior
multiChain: trueandchains: [{ chainId, chain, balances }, ...]--chains: same flat JSON as--chain(backward compatible)--chain: unchangedDocs
README + root/package/connector-ui
SKILL.mdupdates.How to test
pnpm polygon-agent balances --chains polygon,base,arbitrum | catNote: Assignees could not be set from this account (permission); please assign James in the PR sidebar if needed.