Fork me on GitHub
#xtdb
<
2020-12-24
>
Dan Abrams23:12:41

Sorry if this is silly question, but I'm a beginner to crux. Is there a way to tell that a transaction didn't match (and thus didn't continue)?

jarohen23:12:27

Hey @UTECZMYPJ - yep, once you've submitted the transaction to the cluster you'll get a transaction receipt back. You then need to pass this to await-tx to ensure the local node's had chance to index your transaction (your local node is reading the transaction queue), and then tx-committed? will tell you whether the match passed

Dan Abrams23:12:03

Thank you very much, @U050V1N74

🙏 3
Dan Abrams23:12:46

This worked perfectly, thanks.