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

Rosetta API Response to Calculate Balance of an Account Address at a given BlockHeight is incorrect #39

Open
bmalepaty opened this issue Aug 4, 2022 · 0 comments

Comments

@bmalepaty
Copy link

bmalepaty commented Aug 4, 2022

@AeonSw4n

Node is synced. Following is the API response for /network/status
image

But balance at a given height is returning 0 for earlier blocks.
Request: /account/balance
{"network_identifier": { "blockchain": "DeSo", "network": "MAINNET" }, "account_identifier": { "address": "BC1YLj1TE7A7RsRwJQkzvqAuMtd44re4QdQ39HNQhrFN3mTQMM5JxRL" }, "block_identifier": { "index": 87100 }}

Incorrect Response:
{ "block_identifier": { "index": 87100, "hash": "0000000000001cba466fc7d707c0f2b3779e2a17baa549c05c1e4f2acc5719e4" }, "balances": [ { "value": "0", "currency": { "symbol": "DESO", "decimals": 9 } } ] }

These are the latest transactions for the given address:
https://www.openprosper.com/u/Brad_Stephens/transactions
image
At any block after 82856, balance should be 56470 (https://www.openprosper.com/u/Brad_Stephens#user-section-wallet)
image

But Response shows balance is 0

@bmalepaty bmalepaty changed the title Blocks not syncing after HyperSync Rosetta API Responseto Calculate Balance of an Accound Address at a given BlockHeight is incorrect Aug 5, 2022
@bmalepaty bmalepaty changed the title Rosetta API Responseto Calculate Balance of an Accound Address at a given BlockHeight is incorrect Rosetta API Response to Calculate Balance of an Account Address at a given BlockHeight is incorrect Aug 8, 2022
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

No branches or pull requests

1 participant