Skip to content

Improve Efficiency of Kupo UTxO Query by Directly Querying Unspent UTxOs #203

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

Closed
bhatt-deep opened this issue Apr 13, 2023 · 1 comment
Closed
Labels
enhancement New feature or request Feature request

Comments

@bhatt-deep
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Yes, the current implementation of the _utxos_kupo method in the library is inefficient, as it retrieves all UTxOs and then filters for unspent ones. This can be slow and resource-intensive, especially when working with a large number of UTxOs.

Describe the solution you'd like
I propose updating the _utxos_kupo method to directly query unspent UTxOs using the ?unspent flag in the endpoint. This would allow the library to retrieve only the unspent UTxOs, improving the efficiency and performance of the query.

Describe alternatives you've considered
NA

Additional context
NA

@henryyuanheng-wang
Copy link
Contributor

Thanks for flagging this out! Looks like a flag introduced in the recent release. We'll incorporate it into the method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Feature request
Projects
None yet
Development

No branches or pull requests

3 participants