Post
Topic
Board Bitcoin Discussion
Re: Have a question about cancel a transaction
by
Charles-Tim
on 25/12/2023, 07:27:21 UTC
hello, I have a question about how to cancel a transaction which already commited to mempool but not confirmed?

if there is no way or tool to cancel a tx, is it need to develop one?
You can use wallet like Electrum or Sparrow to do that. But as Zaguru said, it is not actually cancel transaction, it is also a replace-by-fee transaction that would be sent to one of your addresses increases of only increasing the fee for more chance to get confirmed.

If you use a wallet that supports the RBF feature, you can cancel transactions that have been broadcast to your own address by increasing the fees. Apart from that, to speed up transactions, you can also use the RBF feature to increase transaction fees. To be able to do this, you must have remaining bitcoins in your wallet, otherwise you cannot do it

To see how RBF works, you can check out this thread : https://bitcointalk.org/index.php?topic=5422456.0
There are some wallet that support replace-by-fee to pump fee but not having it to cancel a transaction.

If the transaction fee is too low and unfortunately the mempool congestion doesn’t reduces such that the transaction fee rate comes down to your range of fee then the transaction will be dropped. The default time is 24 days from the day you broadcasted your transaction but it varies because nodes have different mempool settings so could still have it beyond those days which extends the time for it to be dropped. Also the wallet you might be using could have an in built rebroadcasting feature which will continually rebroadcast your transaction and then stopping it from getting dropped
Typo, you meant 14 days, not 24 days. What to take note also is the purging. If the purging becomes higher than the fee rate used for the transaction, the transaction will also even dropped from the mempool.