Add getAccountResources method to Wallet class#8173
Draft
Conversation
Co-authored-by: bhavidhingra <17147510+bhavidhingra@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add getAccountResources method to wallet class
Add getAccountResources method to Wallet class
Feb 18, 2026
Contributor
bhavidhingra
left a comment
There was a problem hiding this comment.
@copilot We have to change the implementation a bit, this operation will not belong to a wallet. It is agnostic of a wallet.
Co-authored-by: bhavidhingra <17147510+bhavidhingra@users.noreply.github.com>
Author
Moved the method from |
Copilot
AI
changed the title
Add getAccountResources method to Wallet class
Add getAccountResources method to BaseCoin class
Feb 19, 2026
Contributor
bhavidhingra
left a comment
There was a problem hiding this comment.
@copilot Sorry, we have to pivot back to using the wallet specific API. Please revert back to using it as was done earlier.
Co-authored-by: bhavidhingra <17147510+bhavidhingra@users.noreply.github.com>
Author
Copilot
AI
changed the title
Add getAccountResources method to BaseCoin class
Add getAccountResources method to Wallet class
Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
getAccountResources()method to Wallet class for querying account resources from the WP API endpoint.Changes
iWallet.ts): AddedGetAccountResourcesOptionsinterface and method signature toIWalletinterfacewallet.ts): Implemented method with array validation and query parameter handling inWalletclasswallet/getAccountResources.ts): Added unit tests covering success paths and error casesMethod Signature
Calls
GET /accountResourceswith addresses as required parameter and optional assetName filter.Usage
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.