deso-protocol / deso-protocol/rosetta-deso

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

Open
#39 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
21
Forks
18
PR merge metrics
No merged PRs in 30d

Description

@AeonSw4n

Node is synced. Following is the API response for /network/status
![image](https://user-images.githubusercontent.com/77955726/183027195-3548144a-1a12-4cb3-a427-13025a176860.png)

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](https://user-images.githubusercontent.com/77955726/183027576-4b0e11e5-f00f-4cbc-99aa-a38df369c3fa.png)
At any block after 82856, balance should be 56470 (https://www.openprosper.com/u/Brad_Stephens#user-section-wallet)
![image](https://user-images.githubusercontent.com/77955726/183027807-567f412a-0623-48a4-b63e-5b155465fba9.png)

But Response shows balance is 0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.