Skip to content

Raw CBOR datum in transaction outputs #1543

@ch1bo

Description

@ch1bo

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 whatever cardano-api provides, while other applications follow other schemas. For example: kupo, ogmios (also see cardanonical) or blockfrost

This item is a backward-compatible change and in further steps we might want to move to one of those.

What

  • Add a inlineDatumRaw to any TxOut sent out by the API, that contains the raw CBOR for any inline datums

How

  • Update the API specification and implementation

Metadata

Metadata

Labels

💬 featureA feature on our roadmapapiItems related to the Hydra client APIgreen 💚Low complexity or well understood featureuxRelated to user experience

Projects

Status

Done ✔

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions