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

Get user balances at historic block not working #2099

Closed
radicleart opened this issue Sep 30, 2024 · 3 comments
Closed

Get user balances at historic block not working #2099

radicleart opened this issue Sep 30, 2024 · 3 comments
Assignees

Comments

@radicleart
Copy link

Describe the bug

The api call to get user balances at block height is broken.

To Reproduce

  1. Go to 'https://api.hiro.so/extended/v1/address/SP3N4AJFZZYC4BK99H53XP8KDGXFGQ2PRSQP2HGT6/balances?until_block=160000'
  2. See error
"statusCode": 400,
"error": "Bad Request",
"message": "can't handle both 'unanchored' and 'until_block' in the same request"

I tried explicitly setting unanchored but get same response; https://api.hiro.so/extended/v1/address/SP3N4AJFZZYC4BK99H53XP8KDGXFGQ2PRSQP2HGT6/balances?until_block=160000&unanchored=false

Expected behavior
User balances returned

@zone117x
Copy link
Member

Good catch! Aiming to get a fix in for next release.

@zone117x zone117x self-assigned this Sep 30, 2024
@andresgalante andresgalante moved this from 🆕 New to 📋 Backlog in API Board Sep 30, 2024
@radicleart
Copy link
Author

Good catch! Aiming to get a fix in for next release.

How often are releases @zone117x? This is for the sBTC community vote which is due to go live on the 14th - is before then ?

@zone117x
Copy link
Member

zone117x commented Oct 1, 2024

The fix for this issue has been deployed.

@zone117x zone117x closed this as completed Oct 1, 2024
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in API Board Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants