<p>Cancelling unconfirmed transactions is easy.   Just submit a higher fee double-spend transaction.   For example: if you sent a 0-fee transaction, it could take a day before it gets mined onto a block.   You can send another transaction with the same inputs that just sends the money back to yourself.   On this transaction you put a higher fee.   This becomes more likely to be mined and will get included in the blockchain - invalidating the slower-to-confirm original.</p>
<p>Some tools to help out: <a href="https://github.com/petertodd/replace-by-fee-tools" rel="nofollow noreferrer">https://github.com/petertodd/replace-by-fee-tools</a></p>

CC BY-SA 3.0
2017-05-26T21:42:47.723Z
How do you double spend if you are sending from a wallet and now no longer have that same amount? IE I've sent from an XRP wallet to Changelly to convert it to BTC over at Coinbase. Now I don't have enough XRP to send.
Leon Gaban
CC BY-SA 3.0
2017-06-06T08:37:08.777Z
This. In theory looks nice, in practice but really
PedroD
CC BY-SA 3.0
2017-06-23T11:30:52.030Z
@LeonGaban: I believe that in that case, you're screwed. Anybody knows a workaround?
PPC
CC BY-SA 4.0
2016-01-15T18:35:24.667Z
2021-04-25T07:39:40.943Z
2021-04-25T07:39:40.943Z
Erik Aronesty
<p>You cannot cancel an unconfirmed transaction. When a transaction has been transmitted to the chain, it's unstoppable. Luckily everything went well for you I see, and it was probably an error on blockchain.info, as pointed out in the comments. </p>

CC BY-SA 3.0
2014-04-24T19:33:40.000Z
You can cancel an unconfirmed transaction - by double spend this input, therefore original tx will be canceled.
Moreover, even if transaction is included in block, it can be canceled - all you need to do is to mine two consecutive blocks without this tx. Therefore, the first block will be orphaned, and all the transaction it has will be unvalidated. This is the very reason we should wait for 6 confirmations.
Maciej Mączko
CC BY-SA 3.0
2014-04-24T19:40:08.320Z
Ahh, I didnt know that. But isnt it quite easy to cancel your BTC transaction in the supermarket (when its implemented), a few seconds after your transaction? That would be a huge disadvantage
Mathias711
CC BY-SA 3.0
2014-04-24T19:57:37.200Z
I didn't say it is easy, only that it is possible. I think we can pull this on our own. All we need to do is to buy cheap VPS across the globe (digital ocean?), and using ssh - double spend our coins to our address as soon as we initialize transacion in the supermarket. This is double spending. Note that the bigest BTC processor, Bitpay, does accept 0/unconfirmed txs, because they understand the risk and pay for double spends from their own pocket.
Maciej Mączko
CC BY-SA 3.0
2016-01-15T18:34:01.960Z
Cancelling unconfirmed transactions is easy.   Just submit a higher fee double-spend transaction.
Erik Aronesty
CC BY-SA 3.0
2017-06-23T11:26:43.417Z
@Maciej Mączko : I like "mine two consecutive blocks". So easy! Would you please lend me your (super)computer for a day, so that I mine a few blocks, just for sport? :)
PPC
CC BY-SA 3.0
2017-06-24T21:06:59.500Z
@PPC Thanks for your comment. As I said _three years ago_, it isn't easy, it is (was) possible. Back then, strong ASIC would give you two consecutive blocks once in a month.
Maciej Mączko
CC BY-SA 3.0
2014-04-24T10:10:25.310Z
2014-04-24T10:10:25.310Z
Mathias711
<p>I am using blockchain.info.</p>

<p>I have made a bitcoin transaction of 22.00883562 BTC to the address <a href="https://blockchain.info/address/1A9eUAc78tGx65X3CuC9WfSKXXgxjU8ccC">1A9eUAc78tGx65X3CuC9WfSKXXgxjU8ccC</a>.</p>

<p>You can see the transaction at <a href="https://blockchain.info/tx/97c1af82111cdcf17f878eb6df20c17c59c1b1fc04e8cdce36b8ac6c6d1c969a">https://blockchain.info/tx/97c1af82111cdcf17f878eb6df20c17c59c1b1fc04e8cdce36b8ac6c6d1c969a</a></p>

<p>I have paid a 0.001 fee but it has been almost 30 hours and it still shows "Unconfirmed".</p>

<p>What could be the error? Also, more importantly, how do I cancel the unconfirmed transaction and get back my coins?</p>

CC BY-SA 3.0
2014-03-06T00:31:30.287Z
It seems like your transaction has been confirmed now.
Greg Hewgill
CC BY-SA 3.0
2014-03-07T05:15:20.417Z
@GregHewgill, that's irrelevant. The question was how does one cancel an unconfirmed blockchain transaction.
Pacerier
CC BY-SA 3.0
2014-03-07T08:26:32.353Z
Well, that answers the "What could be the error?" question - there was no error.
Greg Hewgill
CC BY-SA 3.0
2014-03-09T16:21:30.280Z
@GregHewgill, considering that he paid 0.001 (10x more the norm) fee, staying "Unconfirmed" for 30 hours is extremely weird and I would say there's a high chance that there's an error with blockchain.info.
Pacerier
CC BY-SA 3.0
2016-12-03T00:53:14.200Z
Possible duplicate of [Is it possible to cancel an unconfirmed transaction?](http://bitcoin.stackexchange.com/questions/4514/is-it-possible-to-cancel-an-unconfirmed-transaction)
Elias Zamaria
CC BY-SA 3.0
2018-01-05T20:24:19.510Z
22 BTC man... you're rich!
Tom Roggero
<blockchain.info>
How do I cancel my blockchain transaction (still unconfirmed)?
Umle
# How do I cancel my blockchain transaction (still unconfirmed)?

(Asked by: username_0 on 2014-03-05)

I am using blockchain.info.

I have made a bitcoin transaction of 22.00883562 BTC to the address [1A9eUAc78tGx65X3CuC9WfSKXXgxjU8ccC](https://blockchain.info/address/1A9eUAc78tGx65X3CuC9WfSKXXgxjU8ccC).

You can see the transaction at <https://blockchain.info/tx/97c1af82111cdcf17f878eb6df20c17c59c1b1fc04e8cdce36b8ac6c6d1c969a>

I have paid a 0.001 fee but it has been almost 30 hours and it still shows "Unconfirmed".

What could be the error? Also, more importantly, how do I cancel the unconfirmed transaction and get back my coins?

**Tags:** blockchain.info

> **Comments:**
> **username_1**: It seems like your transaction has been confirmed now.  
> **username_2**: @GregHewgill, that's irrelevant. The question was how does one cancel an unconfirmed blockchain transaction.  
> **username_1**: Well, that answers the "What could be the error?" question - there was no error.  
> **username_2**: @GregHewgill, considering that he paid 0.001 (10x more the norm) fee, staying "Unconfirmed" for 30 hours is extremely weird and I would say there's a high chance that there's an error with blockchain.info.  
> **username_3**: Possible duplicate of [Is it possible to cancel an unconfirmed transaction?](http://bitcoin.stackexchange.com/questions/4514/is-it-possible-to-cancel-an-unconfirmed-transaction)  
> **username_4**: 22 BTC man... you're rich!  

---

## 2 answers

### Answer by username_5 on 2016-01-15. Score: 15

Cancelling unconfirmed transactions is easy. Just submit a higher fee double-spend transaction. For example: if you sent a 0-fee transaction, it could take a day before it gets mined onto a block. You can send another transaction with the same inputs that just sends the money back to yourself. On this transaction you put a higher fee. This becomes more likely to be mined and will get included in the blockchain - invalidating the slower-to-confirm original.

Some tools to help out: <https://github.com/petertodd/replace-by-fee-tools>

> **Comments:**
> **username_6**: How do you double spend if you are sending from a wallet and now no longer have that same amount? IE I've sent from an XRP wallet to Changelly to convert it to BTC over at Coinbase. Now I don't have enough XRP to send.  
> **username_7**: This. In theory looks nice, in practice but really  
> **username_8**: @LeonGaban: I believe that in that case, you're screwed. Anybody knows a workaround?  

---

### Answer by username_9 on 2014-04-24. Score: 1

You cannot cancel an unconfirmed transaction. When a transaction has been transmitted to the chain, it's unstoppable. Luckily everything went well for you I see, and it was probably an error on blockchain.info, as pointed out in the comments.

> **Comments:**
> **username_10**: You can cancel an unconfirmed transaction - by double spend this input, therefore original tx will be canceled. Moreover, even if transaction is included in block, it can be canceled - all you need to do is to mine two consecutive blocks without this tx. Therefore, the first block will be orphaned, and all the transaction it has will be unvalidated. This is the very reason we should wait for 6 confirmations.  
> **username_9**: Ahh, I didnt know that. But isnt it quite easy to cancel your BTC transaction in the supermarket (when its implemented), a few seconds after your transaction? That would be a huge disadvantage  
> **username_10**: I didn't say it is easy, only that it is possible. I think we can pull this on our own. All we need to do is to buy cheap VPS across the globe (digital ocean?), and using ssh - double spend our coins to our address as soon as we initialize transacion in the supermarket. This is double spending. Note that the bigest BTC processor, Bitpay, does accept 0/unconfirmed txs, because they understand the risk and pay for double spends from their own pocket.  
> **username_5**: Cancelling unconfirmed transactions is easy.   Just submit a higher fee double-spend transaction.  
> **username_8**: @username_10 : I like "mine two consecutive blocks". So easy! Would you please lend me your (super)computer for a day, so that I mine a few blocks, just for sport? :)  
> **username_10**: @username_8 Thanks for your comment. As I said _three years ago_, it isn't easy, it is (was) possible. Back then, strong ASIC would give you two consecutive blocks once in a month.  

---

