Skip to content

Refactor REST UTxO endpoint to support non-zero indices and output Bech32 address #62

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Conversation

whankinsiv
Copy link
Collaborator

This PR:

  • Updates the /utxo/<tx_hash> REST endpoint to /utxo/<tx_hash:index> allowing specification of utxo index. Provide UTXOState REST queries #19
  • Refactors the REST API logic to utilize rest_helper::handle_rest_with_parameter, reducing duplicate code.
  • Modifies the output of /utxo/<tx_hash:index> to return the address field as a Bech32 string instead of an Address object, as requested in Provide UTXOState REST queries #19.

…st_with_parameter

Signed-off-by: William Hankins <william@sundae.fi>
@sandtreader sandtreader merged commit cba6640 into input-output-hk:main Jul 3, 2025
2 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants