I’m currently working on an app that submits transactions to a cardano-node, and I’m looking for the best or most efficient way to confirm if the transaction recently submitted actually went through.
I see that projects like cntools verify submitted transactions only by checking the before and after balances. And then later just taking the hash of the latest trx.
But I’ve had a few cases already where this kind of checking fails. And this easily fails… like if 2 similar transactions produce the same result on the address that’s being checked.
So if it is possible, I’m thinking it would be a lot better to just calculate the actual transaction hash prior to submitting it and then later check for that transaction hash to confirm if it has been finalized.
If this is possible, can someone point me in the right direction? I’m planning to implement this in a nodejs app but any sample logic or spec should help…