Skip to content
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

/account/balance endpoint not filtering for currency symbol #259

Closed
Kartiiyer12 opened this issue Dec 13, 2024 · 0 comments · Fixed by #261
Closed

/account/balance endpoint not filtering for currency symbol #259

Kartiiyer12 opened this issue Dec 13, 2024 · 0 comments · Fixed by #261
Assignees
Labels
bug Something isn't working

Comments

@Kartiiyer12
Copy link
Collaborator

Context & versions

When running '/account/balance', found that the 'currencies' field is not working, and whether I add this field or not, it will return all token balances.
If the currencies field is populated, only balances for the specified currencies need to be returned. If not populated, all available balances need to be returned.

Steps to reproduce

Request body -
{"network_identifier":{"blockchain":"cardano","network":"mainnet"},"account_identifier":{"address":"addr1zyq0kyrml023kwjk8zr86d5gaxrt5w8lxnah8r6m6s4jp4g3r6dxnzml343sx8jweqn4vn3fz2kj8kgu9czghx0jrsyqqktyhv"},"currencies":[{"symbol":"ADA","decimals":"6"}]}'

Actual behavior

Returning all the tokens for the address

Expected behavior

Should return only the ADA value

@Kartiiyer12 Kartiiyer12 added the bug Something isn't working label Dec 13, 2024
@Kammerlo Kammerlo self-assigned this Dec 13, 2024
@cardano-foundation cardano-foundation deleted a comment from Drianna75 Dec 13, 2024
@Kammerlo Kammerlo linked a pull request Dec 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants