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

Add block hash in the response of "matches" API #9

Closed
KtorZ opened this issue Mar 18, 2022 Discussed in #5 · 0 comments · Fixed by #12
Closed

Add block hash in the response of "matches" API #9

KtorZ opened this issue Mar 18, 2022 Discussed in #5 · 0 comments · Fixed by #12
Assignees

Comments

@KtorZ
Copy link
Member

KtorZ commented Mar 18, 2022

Discussed in #5

Originally posted by cffls March 9, 2022
Currently, responses returned by matches doesn't not have block hash. Since the response already contains the slot in which the transaction lives, my naive guess is that it wouldn't be much work to add block hash in the response?


The reason that I would want to see block hash in the returned value is that so I can query the entire block using both block hash and slot number in Ogmios (findIntersect API). My main use case is to get the actual datum sitting at a specific address by using only Kupo and Ogmios, without running additional sync service or database, such as cardano-db-sync (I try to avoid adding new services as much as possible). Do you think this usage pattern is reasonable?


An alternative solution to such use case is to add datum directly in the response of matches API if they present in the witness of the transaction, but this might be a bigger change than simply adding the block hash.

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 a pull request may close this issue.

1 participant