Skip to content

[ChainSync client] More data regarding Tx inputs #304

Answered by KtorZ
KristianBalaj asked this question in Q & A
Discussion options

You must be logged in to vote

Ogmios provides an interface on the base protocols of the Cardano node. The chain sync protocol provides access to raw blocks. In blocks, transaction inputs are stored as simple references (transaction id & output index). Hence why you get them in this form for Ogmios too.

Being able to resolve address, value, datum and other elements associated with an input requires indexing. The node (and thus Ogmios) provides an API to query unspent outputs by reference through the state query protocol. This is because the ledger does maintain a UTxO set of the entire chain. However, you can't resolve spent inputs with that.

if you need more elaborate indexing, e.g. the ability to query any past trans…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KristianBalaj
Comment options

Answer selected by KtorZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q & A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #303 on February 02, 2023 06:33.