Skip to content

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

@bmalepaty

Description

@bmalepaty

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
At any block after 82856, balance should be 56470 (https://www.openprosper.com/u/Brad_Stephens#user-section-wallet)

But Response shows balance is 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions