Skip to content

Don't 404 on /users/:userId/coins/:mint when user has no accounts for a mint#325

Merged
rickyrombo merged 1 commit intomainfrom
mjp-no-404
Aug 13, 2025
Merged

Don't 404 on /users/:userId/coins/:mint when user has no accounts for a mint#325
rickyrombo merged 1 commit intomainfrom
mjp-no-404

Conversation

@rickyrombo
Copy link
Copy Markdown
Contributor

Updates the v1UsersCoin method to be "mint-first" in the query, such that it returns all the relevant coin information and a zero balance (and an empty list of accounts) if the user has no accounts with that mint.

Copy link
Copy Markdown
Member

@raymondjacobson raymondjacobson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps a test

@rickyrombo rickyrombo merged commit 05b6123 into main Aug 13, 2025
5 checks passed
@rickyrombo rickyrombo deleted the mjp-no-404 branch August 13, 2025 15:37
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.

2 participants