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

Support awaiting tx status changes #597

Closed ngua closed 2 years ago

ngua commented 2 years ago

We should support something like awaitTxConfirmed/awaitTxStatusChanged from Plutus. One way to do this is to query the chain until the transaction hash returns a full transaction. Another way might be to use Ogmios' local tx monitor, although that would mean that we couldn't support this feature for a hypothetical Blockfrost backend

Currently blocked on #30 (or #594 if we want to use the Ogmios approach)

klntsky commented 2 years ago

awaitTxStatusChanged is currently impossible, because Ogmios does not differentiate between committed state and TentativelyConfirmed. @ngua should we close it?

ngua commented 2 years ago

Yes I think our support is good enough now