-
Notifications
You must be signed in to change notification settings - Fork 79
Enable getAccountDetails on web sdk RpcClient
#1628
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
base: next
Are you sure you want to change the base?
Enable getAccountDetails on web sdk RpcClient
#1628
Conversation
getAccountDetails on web sdk RpcClient
SantiagoPittella
left a 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.
Nice PR, thanks!
igamigo
left a 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.
Code looks good to me, but left some comments on things I think we should address before merging. Mostly adding a few getters to the new struct, and adding docs.
Also, something to keep in mind is that the node's get_account_details will soon be deprecated, and will be replaced with a different flow that involves different RPC calls. For the most part it should not affect this, but we should also expose functions that do not necessarily return the whole account for users that just want to read an account's header.
b5f022f to
ce25172
Compare
ce25172 to
a154092
Compare
Adding a way to fetch accounts through the web rpc client without needing to add the account to the client itself by using
client.importAccountByIdUseful when you want to fetch faucet account to get the symbols and decimals. This also solves this Feedback issue.