Skip to content
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

Query for programmable tokens at an address #23

Open
j-mueller opened this issue Dec 23, 2024 · 0 comments
Open

Query for programmable tokens at an address #23

j-mueller opened this issue Dec 23, 2024 · 0 comments
Assignees

Comments

@j-mueller
Copy link
Collaborator

j-mueller commented Dec 23, 2024

[ ] Add a query to Wst.Offchain.Query that returns the amount of programmable tokens belonging to an address.
[ ] Add a test for this to one of the existing unit tests, such as issueAlwaysSucceedsValidator.
[ ] Add a GET route to Wst.Server.Types.QueryAPI and implement it in Wst.Server

This can be done using Wst.Offchain.Query.programmableLogicOutputs, filtering the outputs to those with the correct payment credential, and summing up the results by monetary policy. (Output should be something like Map PolicyId Quantity)

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

No branches or pull requests

2 participants