Bitcoin Forum
May 21, 2024, 11:18:44 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: 1 2 [All]
  Print  
Author Topic: any way to cancel an unconfirmed transaction?  (Read 5466 times)
DieJohnny (OP)
Legendary
*
Offline Offline

Activity: 1639
Merit: 1006


View Profile
November 05, 2015, 01:35:27 AM
 #1

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....

Those who hold and those who are without property have ever formed distinct interests in society
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
November 05, 2015, 01:47:07 AM
 #2

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?
DieJohnny (OP)
Legendary
*
Offline Offline

Activity: 1639
Merit: 1006


View Profile
November 05, 2015, 01:51:19 AM
 #3

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

Those who hold and those who are without property have ever formed distinct interests in society
DieJohnny (OP)
Legendary
*
Offline Offline

Activity: 1639
Merit: 1006


View Profile
November 05, 2015, 01:52:41 AM
 #4

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....

Those who hold and those who are without property have ever formed distinct interests in society
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6641


Just writing some code


View Profile WWW
November 05, 2015, 01:57:05 AM
 #5

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.

DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
November 05, 2015, 02:08:32 AM
 #6

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.
DieJohnny (OP)
Legendary
*
Offline Offline

Activity: 1639
Merit: 1006


View Profile
November 05, 2015, 02:13:54 AM
 #7

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?

Those who hold and those who are without property have ever formed distinct interests in society
DieJohnny (OP)
Legendary
*
Offline Offline

Activity: 1639
Merit: 1006


View Profile
November 05, 2015, 02:15:10 AM
 #8

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>

Those who hold and those who are without property have ever formed distinct interests in society
DieJohnny (OP)
Legendary
*
Offline Offline

Activity: 1639
Merit: 1006


View Profile
November 05, 2015, 02:18:27 AM
 #9

running this from the debug window says method not found

bitcoind -zapwallettxes


Those who hold and those who are without property have ever formed distinct interests in society
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6641


Just writing some code


View Profile WWW
November 05, 2015, 02:22:35 AM
 #10

running this from the debug window says method not found

bitcoind -zapwallettxes


Just run zapwallettxes (no dash, no bitcoind)

DieJohnny (OP)
Legendary
*
Offline Offline

Activity: 1639
Merit: 1006


View Profile
November 05, 2015, 02:24:00 AM
 #11

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)

Those who hold and those who are without property have ever formed distinct interests in society
Rude Boy
Hero Member
*****
Offline Offline

Activity: 770
Merit: 500


View Profile
November 05, 2015, 02:25:17 AM
 #12

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.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6641


Just writing some code


View Profile WWW
November 05, 2015, 02:25:31 AM
 #13

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

DieJohnny (OP)
Legendary
*
Offline Offline

Activity: 1639
Merit: 1006


View Profile
November 05, 2015, 02:28:16 AM
 #14

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???

Those who hold and those who are without property have ever formed distinct interests in society
mullick
Legendary
*
Offline Offline

Activity: 1064
Merit: 1002


View Profile
November 05, 2015, 02:28:58 AM
 #15

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
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6641


Just writing some code


View Profile WWW
November 05, 2015, 02:30:53 AM
 #16

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.

DieJohnny (OP)
Legendary
*
Offline Offline

Activity: 1639
Merit: 1006


View Profile
November 05, 2015, 02:34:55 AM
 #17

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

Those who hold and those who are without property have ever formed distinct interests in society
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6641


Just writing some code


View Profile WWW
November 05, 2015, 02:37:17 AM
 #18

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.

DieJohnny (OP)
Legendary
*
Offline Offline

Activity: 1639
Merit: 1006


View Profile
November 05, 2015, 02:45:42 AM
 #19

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

Those who hold and those who are without property have ever formed distinct interests in society
DieJohnny (OP)
Legendary
*
Offline Offline

Activity: 1639
Merit: 1006


View Profile
November 05, 2015, 02:49:24 AM
 #20

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

Those who hold and those who are without property have ever formed distinct interests in society
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6641


Just writing some code


View Profile WWW
November 05, 2015, 02:51:55 AM
 #21

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.

DieJohnny (OP)
Legendary
*
Offline Offline

Activity: 1639
Merit: 1006


View Profile
November 05, 2015, 02:52:54 AM
 #22

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

Those who hold and those who are without property have ever formed distinct interests in society
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6641


Just writing some code


View Profile WWW
November 05, 2015, 02:55:52 AM
 #23

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.

DieJohnny (OP)
Legendary
*
Offline Offline

Activity: 1639
Merit: 1006


View Profile
November 05, 2015, 03:01:19 AM
 #24

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.... Sad

Those who hold and those who are without property have ever formed distinct interests in society
DieJohnny (OP)
Legendary
*
Offline Offline

Activity: 1639
Merit: 1006


View Profile
November 05, 2015, 03:03:25 AM
 #25

have run three times with the same result....

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

Those who hold and those who are without property have ever formed distinct interests in society
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6641


Just writing some code


View Profile WWW
November 05, 2015, 03:06:58 AM
 #26

try running it with -zapwallettxes=2 instead of just -zapwallettxes. I'm not sure if that will help.

DieJohnny (OP)
Legendary
*
Offline Offline

Activity: 1639
Merit: 1006


View Profile
November 05, 2015, 03:09:51 AM
 #27

try running it with -zapwallettxes=2 instead of just -zapwallettxes. I'm not sure if that will help.

No change

Those who hold and those who are without property have ever formed distinct interests in society
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6641


Just writing some code


View Profile WWW
November 05, 2015, 04:02:22 AM
 #28

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.

mullick
Legendary
*
Offline Offline

Activity: 1064
Merit: 1002


View Profile
November 05, 2015, 04:03:10 AM
Last edit: November 05, 2015, 04:13:34 AM by mullick
 #29

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
DieJohnny (OP)
Legendary
*
Offline Offline

Activity: 1639
Merit: 1006


View Profile
November 05, 2015, 06:35:29 AM
 #30

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.


Those who hold and those who are without property have ever formed distinct interests in society
Pages: 1 2 [All]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!