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

query_balance doesn't implement the optional state_identifier #85

Open
stormeye2000 opened this issue May 14, 2024 · 0 comments
Open

query_balance doesn't implement the optional state_identifier #85

stormeye2000 opened this issue May 14, 2024 · 0 comments

Comments

@stormeye2000
Copy link

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

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