Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: DieJohnny on November 05, 2015, 01:35:27 AM



Title: any way to cancel an unconfirmed transaction?
Post by: DieJohnny on November 05, 2015, 01:35:27 AM
I have some unconfirmed transactions that are sitting for hours. I want them gone, what can i do?

5b788baaf29eb5da59b01704179d5ebfb05f0ea3dea79482b76984b2001a7c4c-000

I don't want it pushed, i want it gone....


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DannyHamilton on November 05, 2015, 01:47:07 AM
I have some unconfirmed transactions that are sitting for hours. I want them gone, what can i do?

5b788baaf29eb5da59b01704179d5ebfb05f0ea3dea79482b76984b2001a7c4c-000

I don't want it pushed, i want it gone....

What wallet did you send the transaction from?


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DieJohnny on November 05, 2015, 01:51:19 AM
I have some unconfirmed transactions that are sitting for hours. I want them gone, what can i do?

5b788baaf29eb5da59b01704179d5ebfb05f0ea3dea79482b76984b2001a7c4c-000

I don't want it pushed, i want it gone....

What wallet did you send the transaction from?

From Bitcoin-qt


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DieJohnny on November 05, 2015, 01:52:41 AM
I have some unconfirmed transactions that are sitting for hours. I want them gone, what can i do?

5b788baaf29eb5da59b01704179d5ebfb05f0ea3dea79482b76984b2001a7c4c-000

I don't want it pushed, i want it gone....

What wallet did you send the transaction from?

Can I get my address private key off bitcoin-qt? 

Thinking a second strategy is to double spend with a bigger txn fee ahead of this transaction. If i can import my key into blockchain or some other wallet service i can double spend from there i think....


Title: Re: any way to cancel an unconfirmed transaction?
Post by: achow101 on November 05, 2015, 01:57:05 AM
I have some unconfirmed transactions that are sitting for hours. I want them gone, what can i do?

5b788baaf29eb5da59b01704179d5ebfb05f0ea3dea79482b76984b2001a7c4c-000

I don't want it pushed, i want it gone....

What wallet did you send the transaction from?

Can I get my address private key off bitcoin-qt? 

Thinking a second strategy is to double spend with a bigger txn fee ahead of this transaction. If i can import my key into blockchain or some other wallet service i can double spend from there i think....

Open up the debug console, Help > Debug Window > console tab and then type into the box
Code:
dumpprivkey <address>
Where <address> is the address whose private key you want.

If the wallet has a password on it, do
Code:
walletpassphrase <passphrase> 120
where <passphrase> is the passphrase to your wallet BEFORE the command above. This will unlock your for 120 seconds so in that time you need to do the dumpprivkey to get the private key in Wallet Import Format.


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DannyHamilton on November 05, 2015, 02:08:32 AM
If you want to remove the transaction from your wallet, you can use the -zapwallettxes command line option:

https://en.bitcoin.it/wiki/Running_Bitcoin
Code:
-zapwallettxes=<mode>  Delete all wallet transactions and only recover those part of the blockchain through -rescan on startup


If most nodes have already heard about your first transaction, you may find it difficult to "double spend with a bigger txn fee ahead of this transaction".  Most nodes, miners, and mining pools will refuse to accept the new higher fee transaction while they still have the old transaction in their memory pool.

Even if you remove the transaction from your wallet, it doesn't guarantee that the transaction is "cancelled".  It's possible that a miner (or mining pool) that has already heard about the original transaction will confirm it before it is dropped from everyone's memory pool.


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DieJohnny on November 05, 2015, 02:13:54 AM
If you want to remove the transaction from your wallet, you can use the -zapwallettxes command line option:

https://en.bitcoin.it/wiki/Running_Bitcoin
Code:
-zapwallettxes=<mode>  Delete all wallet transactions and only recover those part of the blockchain through -rescan on startup


If most nodes have already heard about your first transaction, you may find it difficult to "double spend with a bigger txn fee ahead of this transaction".  Most nodes, miners, and mining pools will refuse to accept the new higher fee transaction while they still have the old transaction in their memory pool.

Even if you remove the transaction from your wallet, it doesn't guarantee that the transaction is "cancelled".  It's possible that a miner (or mining pool) that has already heard about the original transaction will confirm it before it is dropped from everyone's memory pool.

What are the risks of doing this, can i corrupt my wallet in any way?


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DieJohnny on November 05, 2015, 02:15:10 AM
If you want to remove the transaction from your wallet, you can use the -zapwallettxes command line option:

https://en.bitcoin.it/wiki/Running_Bitcoin
Code:
-zapwallettxes=<mode>  Delete all wallet transactions and only recover those part of the blockchain through -rescan on startup


If most nodes have already heard about your first transaction, you may find it difficult to "double spend with a bigger txn fee ahead of this transaction".  Most nodes, miners, and mining pools will refuse to accept the new higher fee transaction while they still have the old transaction in their memory pool.

Even if you remove the transaction from your wallet, it doesn't guarantee that the transaction is "cancelled".  It's possible that a miner (or mining pool) that has already heard about the original transaction will confirm it before it is dropped from everyone's memory pool.

What do I put in <mode>


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DieJohnny on November 05, 2015, 02:18:27 AM
running this from the debug window says method not found

bitcoind -zapwallettxes



Title: Re: any way to cancel an unconfirmed transaction?
Post by: achow101 on November 05, 2015, 02:22:35 AM
running this from the debug window says method not found

bitcoind -zapwallettxes


Just run zapwallettxes (no dash, no bitcoind)


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DieJohnny on November 05, 2015, 02:24:00 AM
running this from the debug window says method not found

bitcoind -zapwallettxes


Just run zapwallettxes (no dash, no bitcoind)

Running Macbook Bitcoin-QT client, v0.10.2, from debug window I type  and get

zapwallettxes
Method not found (code -32601)


Title: Re: any way to cancel an unconfirmed transaction?
Post by: Rude Boy on November 05, 2015, 02:25:17 AM
AFAIK, its impossible to cancel an unconfirmed bitcoin transaction and it was the nature of bitcoin. If it was a double spend, it'll automatically been rejected by the node.


Title: Re: any way to cancel an unconfirmed transaction?
Post by: achow101 on November 05, 2015, 02:25:31 AM
running this from the debug window says method not found

bitcoind -zapwallettxes


Just run zapwallettxes (no dash, no bitcoind)

Running Macbook Bitcoin-QT client, from debug window I type  and get

zapwallettxes
Method not found (code -32601)

whoops, sorry, you don't run that from the debug window. Actually, go to the terminal and run
Code:
bitcoin-qt -zapwallettxes


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DieJohnny on November 05, 2015, 02:28:16 AM
running this from the debug window says method not found

bitcoind -zapwallettxes


Just run zapwallettxes (no dash, no bitcoind)

Running Macbook Bitcoin-QT client, from debug window I type  and get

zapwallettxes
Method not found (code -32601)

whoops, sorry, you don't run that from the debug window. Actually, go to the terminal and run
Code:
bitcoin-qt -zapwallettxes

Do i need to shutdown my bitcoin-qt client first? navigate to correct directory???


Title: Re: any way to cancel an unconfirmed transaction?
Post by: mullick on November 05, 2015, 02:28:58 AM
running this from the debug window says method not found

bitcoind -zapwallettxes


Just run zapwallettxes (no dash, no bitcoind)

Running Macbook Bitcoin-QT client, from debug window I type  and get

zapwallettxes
Method not found (code -32601)


If you are running the qt you need to start bitcoin-qt if im not mistaken not bitcoind but its been a few years since I used bitcoin-qt

I just confirmed bitcoind accepts -zapwallettxes

try bitcoin-qt -zapwallettxes


Title: Re: any way to cancel an unconfirmed transaction?
Post by: achow101 on November 05, 2015, 02:30:53 AM
Do i need to shutdown my bitcoin-qt client first? navigate to correct directory???
You shouldn't need to navigate to the directory, but bitcoin core needs to be shutdown first.


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DieJohnny on November 05, 2015, 02:34:55 AM
Do i need to shutdown my bitcoin-qt client first? navigate to correct directory???
You shouldn't need to navigate to the directory, but bitcoin core needs to be shutdown first.

I did shutdown the client, but getting command not found when I run from Terminal root dir

Looked in /Library/Application Support for Bitcoin directory but cannot find it.... argh


Title: Re: any way to cancel an unconfirmed transaction?
Post by: achow101 on November 05, 2015, 02:37:17 AM
Do i need to shutdown my bitcoin-qt client first? navigate to correct directory???
You shouldn't need to navigate to the directory, but bitcoin core needs to be shutdown first.

I did shutdown the client, but getting command not found when I run from Terminal root dir

Looked in /Library/Application Support for Bitcoin directory but cannot find it.... argh

I think it should be in /applications, but I could be wrong. I don't use macs.


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DieJohnny on November 05, 2015, 02:45:42 AM
Do i need to shutdown my bitcoin-qt client first? navigate to correct directory???
You shouldn't need to navigate to the directory, but bitcoin core needs to be shutdown first.

I did shutdown the client, but getting command not found when I run from Terminal root dir

Looked in /Library/Application Support for Bitcoin directory but cannot find it.... argh

I think it should be in /applications, but I could be wrong. I don't use macs.

It is in /Applications but it has some weird Mac crap going on. the file is Bitcoin-qt.app

Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt

seems to be the target... about to do this thing.. fml


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DieJohnny on November 05, 2015, 02:49:24 AM
Found Bitcoin-QT.

First I check the executable is there

from Mac OS dir $ ls
Bitcoin-Qt

Then I run this

Bitcoin-Qt -zapwalletxes

I get this....

-bash: Bitcoin-Qt: command not found

I matched case on the ls, have to be missing something


Title: Re: any way to cancel an unconfirmed transaction?
Post by: achow101 on November 05, 2015, 02:51:55 AM
Found Bitcoin-QT.

First I check the executable is there

from Mac OS dir $ ls
Bitcoin-Qt

Then I run this

Bitcoin-Qt -zapwalletxes

I get this....

-bash: Bitcoin-Qt: command not found

I matched case on the ls, have to be missing something
run it with ./ before bitcoin-qt.


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DieJohnny on November 05, 2015, 02:52:54 AM
Added this ./ to the front of Bitcoin-Qt -zapwalletxes

It launched Bitcoin-Qt.... no idea what is happening now.. hopefully launching with a delete on my unconfirmed txns


Title: Re: any way to cancel an unconfirmed transaction?
Post by: achow101 on November 05, 2015, 02:55:52 AM
Added this ./ to the front of Bitcoin-Qt -zapwalletxes

It launched Bitcoin-Qt.... no idea what is happening now.. hopefully launching with a delete on my unconfirmed txns
When everything loads, check the transaction history and all of the unconfirmed transactions that were there should be gone. Then you can shut down bitcoin core and restart it normally. Everything should work and you can then resend all of your transactions.


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DieJohnny on November 05, 2015, 03:01:19 AM
Added this ./ to the front of Bitcoin-Qt -zapwalletxes

It launched Bitcoin-Qt.... no idea what is happening now.. hopefully launching with a delete on my unconfirmed txns
When everything loads, check the transaction history and all of the unconfirmed transactions that were there should be gone. Then you can shut down bitcoin core and restart it normally. Everything should work and you can then resend all of your transactions.

This did not happen, the most recent transaction is now listed as status "conflicted", no idea what this means....dafuq

The next four transactions are listed as "unconfirmed" still with zero confirmations....

Starting to make me nervous with conflicted status, someone spending my coins.... :(


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DieJohnny on November 05, 2015, 03:03:25 AM
have run three times with the same result....

What is the long and short of this assuming nobody has stolen my private keys....?


Title: Re: any way to cancel an unconfirmed transaction?
Post by: achow101 on November 05, 2015, 03:06:58 AM
try running it with -zapwallettxes=2 instead of just -zapwallettxes. I'm not sure if that will help.


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DieJohnny on November 05, 2015, 03:09:51 AM
try running it with -zapwallettxes=2 instead of just -zapwallettxes. I'm not sure if that will help.

No change


Title: Re: any way to cancel an unconfirmed transaction?
Post by: achow101 on November 05, 2015, 04:02:22 AM
Found Bitcoin-QT.

First I check the executable is there

from Mac OS dir $ ls
Bitcoin-Qt

Then I run this

Bitcoin-Qt -zapwalletxes

I get this....

-bash: Bitcoin-Qt: command not found

I matched case on the ls, have to be missing something

try

./Bitcoin-Qt -zapwalletxes
You're slow, we already go past that. The problem OP now has is that zapwallettxes is not removing his unconfirmed transactions. I have been thinking about it but I don't know why that is happening.


Title: Re: any way to cancel an unconfirmed transaction?
Post by: mullick on November 05, 2015, 04:03:10 AM
Found Bitcoin-QT.

First I check the executable is there

from Mac OS dir $ ls
Bitcoin-Qt

Then I run this

Bitcoin-Qt -zapwalletxes

I get this....

-bash: Bitcoin-Qt: command not found

I matched case on the ls, have to be missing something

try

./Bitcoin-Qt -zapwalletxes
You're slow, we already go past that. The problem OP now has is that zapwallettxes is not removing his unconfirmed transactions. I have been thinking about it but I don't know why that is happening.

Ya saw that and deleted it. Hadnt refreshed in a while I guess

I have never used the zapwallet command. I still use gavins bitcointools to remove txes from a wallet. But then we go down the road of getting python installed for op

https://github.com/gavinandresen/bitcointools

EDIT:

Depending on how many addresses you have you could run a "listunspent" then dump the private key for every address with a balance. Then import them to a new wallet. If you have more than a dozen addresses this would just be a pain. Backup both wallets and dont forget to dump the key to the change address from the unconfirmed transactions


Title: Re: any way to cancel an unconfirmed transaction?
Post by: DieJohnny on November 05, 2015, 06:35:29 AM
Found Bitcoin-QT.

First I check the executable is there

from Mac OS dir $ ls
Bitcoin-Qt

Then I run this

Bitcoin-Qt -zapwalletxes

I get this....

-bash: Bitcoin-Qt: command not found

I matched case on the ls, have to be missing something

try

./Bitcoin-Qt -zapwalletxes
You're slow, we already go past that. The problem OP now has is that zapwallettxes is not removing his unconfirmed transactions. I have been thinking about it but I don't know why that is happening.

Ya saw that and deleted it. Hadnt refreshed in a while I guess

I have never used the zapwallet command. I still use gavins bitcointools to remove txes from a wallet. But then we go down the road of getting python installed for op

https://github.com/gavinandresen/bitcointools

EDIT:

Depending on how many addresses you have you could run a "listunspent" then dump the private key for every address with a balance. Then import them to a new wallet. If you have more than a dozen addresses this would just be a pain. Backup both wallets and dont forget to dump the key to the change address from the unconfirmed transactions

I have run zapwalletxes both online and offline if anyone is interested.

I got the private key using the bitcoin-qt debug window on one of the hung txns using. I tried importing that key into another Bitcoin-qt client but it said the the key was not in the acceptable import format. I have no idea how to get such a format.

i can easily get all the keys, but I need a way to format them so i can import them back, strange the format out is not the same as the format in.... or if it is can someone tell me and I will see what i may have done wrong.