I have created, signed and sent a raw transaction via bitcoind RPC. Now I want to wait for it to have n confirmations.
Considering transaction malleability, I can't just check the "confirmations"
field returned by gettransaction
, because the transaction with that particular txid
may never be accepted, in case an equivalent transaction with some other txid
was accepted instead.
So, what is the canonical way, using bitcoind JSON-RPC, to check if an equivalent transaction was accepted in place of mine? What calls are better suited for the task?