Skip to content

Conversation

@whankinsiv
Copy link
Collaborator

@whankinsiv whankinsiv commented Nov 13, 2025

Description

  • Adds handlers /addresses/{address}/utxos and /addresses/{address}/transactions in rest_blockfrost.
  • Introduces GetTransactionHashesAndTimestamps to avoid multiple chain_store queries for timestamps and transaction hashes.
  • Refactors GetUTxOHashes to return QueryError instead of silently failing when UTxO hashes cannot be retrieved.
  • Refactors get_utxos and get_address_utxos to return an empty Vec instead of None if an address has ever had UTxOs stored, matching Blockfrost behavior.
  • Adds clear-on-start config option to address_state with default true.

Related Issue(s)

#335

How was this tested?

  • Compared REST output against Blockfrost for Byron and Shelley addresses across both endpoints.

Checklist

  • My code builds and passes local tests
  • I added/updated tests for my changes, where applicable
  • I updated documentation (if applicable)
  • CI is green for this PR

Impact / Side effects

None

Reviewer notes / Areas to focus

  • Query handlers in chain_store.rs

Signed-off-by: William Hankins <william@sundae.fi>
Signed-off-by: William Hankins <william@sundae.fi>
…lockfrost

Signed-off-by: William Hankins <william@sundae.fi>
Signed-off-by: William Hankins <william@sundae.fi>
@whankinsiv whankinsiv marked this pull request as ready for review November 16, 2025 21:19
Copy link
Collaborator

@lowhung lowhung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work will 👍

…ilding

Signed-off-by: William Hankins <william@sundae.fi>
@whankinsiv whankinsiv merged commit 9bed98d into main Nov 19, 2025
2 checks passed
@whankinsiv whankinsiv deleted the whankinsiv/address-txs-endpoint branch November 19, 2025 00:17
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

Successfully merging this pull request may close these issues.

4 participants