-
Notifications
You must be signed in to change notification settings - Fork 6
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
Implement QueryBalanceDetails RPC method #86
Implement QueryBalanceDetails RPC method #86
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ZhmakAS see my comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check my comment.
…_rpc_endpoint # Conflicts: # types/block.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Check my comment about GetBalance
method.
rpc/client.go
Outdated
// The request takes in the formatted representation of a purse URef as a parameter. | ||
// If the param stateRootHash is nil, the client will make an additional RPC call to retrieve the latest stateRootHash. | ||
GetAccountBalance(ctx context.Context, stateRootHash *string, purseURef string) (StateGetBalanceResult, error) | ||
GetBalance(ctx context.Context, purseURef string, stateRootHash *string) (StateGetBalanceResult, error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just realized. Should we have GetLatestBalance
and GetBalanceByStateRootHash
methods?
Fixed after review
Summary
TODO
Checklist