Open ch1bo opened 1 month ago
We encountered this when building https://github.com/cardano-scaling/hydra-doom with @Quantumplation and @yHSJ where we use https://github.com/spacebudz/lucid
Related to #1509
PR upstream: https://github.com/IntersectMBO/cardano-api/pull/632
Why
When building applications that need to spend from a script UTxO in a Hydra head, which has a datum attached, that off-chain code needs access to the raw Datum for evaluating the transaction and calculate fees.
The schema used by the
hydra-node
right now matches whatevercardano-api
provides, while other applications follow other schemas. For example: kupo, ogmios (also see cardanonical) or blockfrostThis item is a backward-compatible change and in further steps we might want to move to one of those.
What
inlineDatumRaw
to anyTxOut
sent out by the API, that contains the raw CBOR for any inline datumsHow