Add getAccountResources method to Wallet class#8173
Conversation
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.
Moved the method from |
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.
7cfd6f2 to
ca445f8
Compare
TICKET: CHALO-206
ca445f8 to
2c533ce
Compare
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 options object pattern, array validation and query parameter handling inWalletclasswallet/getAccountResources.ts): Added unit tests covering success paths and error casesMethod Signature
Where
GetAccountResourcesOptionsis defined as: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.