Skip to content

Conversation

@0xnullifier
Copy link
Contributor

@0xnullifier 0xnullifier commented Dec 23, 2025

Adding a way to fetch accounts through the web rpc client without needing to add the account to the client itself by using client.importAccountById

Useful when you want to fetch faucet account to get the symbols and decimals. This also solves this Feedback issue.

@0xnullifier 0xnullifier changed the title feat: enable fetching accounts on rpc client Enable getAccountDetails on web sdk RpcClient Dec 23, 2025
@0xnullifier 0xnullifier marked this pull request as ready for review December 23, 2025 11:53
Copy link
Collaborator

@SantiagoPittella SantiagoPittella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR, thanks!

Copy link
Collaborator

@igamigo igamigo left a 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.

@0xnullifier 0xnullifier force-pushed the feat/web-sdk-rpc-fetch-account branch 2 times, most recently from b5f022f to ce25172 Compare December 26, 2025 16:58
@0xnullifier 0xnullifier requested a review from igamigo December 26, 2025 16:58
@0xnullifier 0xnullifier force-pushed the feat/web-sdk-rpc-fetch-account branch from ce25172 to a154092 Compare December 26, 2025 17:27
@0xnullifier 0xnullifier requested a review from igamigo December 27, 2025 07:04
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

Successfully merging this pull request may close these issues.

3 participants