Plutonomicon / cardano-transaction-lib

A Purescript library for building smart contract transactions on Cardano
https://plutonomicon.github.io/cardano-transaction-lib/
MIT License
93 stars 50 forks source link

Add getTxByHash #824

Closed klntsky closed 2 years ago

klntsky commented 2 years ago

From Ogmios changelog

Transaction JSON objects from all eras now contains an extra field raw, which represents the raw serialized transaction (CBOR) as a base64-encoded text string. This is the case of the chain-sync protocol, but also for the tx-monitor protocol. The field is however absent in the ogmios.v1:compact mode. See https://github.com/CardanoSolutions/ogmios/issues/190.

That means we can now deserialize cborbase64 with CSL and implement getTxByHash without the need to decode Json.

klntsky commented 2 years ago

Duplicate of #30