Skip to content

query_balance doesn't implement the optional state_identifier #85

Description

@stormeye2000

Terminus Go Tests:
https://github.com/casper-sdks/terminus-go-tests/blob/00e42153ccc3b77991a78928f665c4ac41308541/tests/steps/query_balance_test.go#L155

The query_balance RPC works successfully with a user public key to get the current balance
The state identifier has not been implemented to enable a historic query_balance as per the Casper documentation:
https://docs.casper.network/developers/json-rpc/json-rpc-informational/#query-balance

See below's documentation example:

"id": 1,
"jsonrpc": "2.0",
"method": "query_balance",
"params": [
    {
        "name": "state_identifier",
        "value": {
            "BlockHash": "13c2d7a68ecdd4b74bf4393c88915c836c863fc4bf11d7f2bd930a1bbccacdcb"
        }
    },
    {
        "name": "purse_identifier",
        "value": {
            "main_purse_under_account_hash": "account-hash-0909090909090909090909090909090909090909090909090909090909090909"
        }
    }
]

Thanks!
Carl Norburn
@cnorburn

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions