-
Notifications
You must be signed in to change notification settings - Fork 28
create an endpoint to query token balances #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
Contributor
Author
642b121 to
ef06e1d
Compare
19f06cb to
9e41ec1
Compare
ef06e1d to
f2005cc
Compare
9e41ec1 to
095b23c
Compare
f2005cc to
ee306d4
Compare
095b23c to
6012e99
Compare
ee306d4 to
da1b7ce
Compare
6012e99 to
0027fe0
Compare
da1b7ce to
269a2fd
Compare
0027fe0 to
0746373
Compare
0746373 to
78f89a6
Compare
This was referenced Feb 5, 2025
Merged
78f89a6 to
2794038
Compare
nischitpra
approved these changes
Feb 5, 2025
2794038 to
bebc12d
Compare
709e2ec to
5ca2e8c
Compare
bebc12d to
2879e27
Compare
5ca2e8c to
a851003
Compare
2879e27 to
f565593
Compare
a851003 to
91c6a6f
Compare
f565593 to
643ca0f
Compare
91c6a6f to
a4e99ae
Compare
643ca0f to
defc6e7
Compare
defc6e7 to
8ba80e1
Compare
8ba80e1 to
416b7c3
Compare
416b7c3 to
38f40ce
Compare
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.

TL;DR
Added a new API endpoint to fetch token balances by type (ERC20, ERC721, ERC1155) for a given address.
What changed?
/balances/:owner/:typeendpoint to retrieve token balancesHow to test?
/balances/{address}/{token_type}token_type: "erc20", "erc721", or "erc1155"hide_zero_balances: true/falsetoken_address: specific token contractpageandlimit: for paginationsort_byandsort_order: for sortingWhy make this change?
To provide a convenient way to fetch token balances for addresses across different token standards, enabling better wallet integration and portfolio tracking capabilities.