Bitcoin Forum
May 26, 2024, 07:38:51 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Sending bitcoins to a wrong address  (Read 152 times)
btctoo (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
May 17, 2020, 06:01:24 AM
 #1

Imagine i send bitcoin to a wrong address, its still unconfirmed, how do i cancel the transaction or double spend it

New to this technique.
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3132



View Profile
May 17, 2020, 07:15:16 AM
 #2

Imagine i send bitcoin to a wrong address, its still unconfirmed, how do i cancel the transaction or double spend it

You cannot cancel any transaction. Double-spending is also pointless since most nodes will reject the conflicting transaction (transaction spending the same inputs) if they already have the first transaction in their mempools. You are more likely to succeed in a few days when most nodes drop the first transaction.

If you really insist on doing that, since you are using a Blockchain wallet, you would have to import your wallet into Electrum, for example. Then you would have to follow these instructions .
pooya87
Legendary
*
Offline Offline

Activity: 3458
Merit: 10593



View Profile
May 17, 2020, 08:13:01 AM
 #3

since Electrum nodes are also bitcoin full nodes with the same standard rules as any other bitcoin core full node they will also reject the conflicting transactions, it is a method that majority of bitcoin nodes incorporate to make double spend scam attempts harder to perform.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
mocacinno
Legendary
*
Offline Offline

Activity: 3402
Merit: 4984


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
May 18, 2020, 06:52:32 AM
 #4

A bit off-topic, but i wonder if it's possible to "cancel" it if :
1. The transaction have RBF flag
2. Create new RBF transaction where all/most bitcoin is sent to change address instead

If your original tx has the rbf flag set, it can be replaced by another transaction using the same unspent outputs as an input. You can change the address(es) being funded, as well as the values they're funded with.  This is why services like bitpay don't like rbf tx's

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
hugeblack
Legendary
*
Offline Offline

Activity: 2520
Merit: 3691


View Profile WWW
May 18, 2020, 01:34:37 PM
 #5

If your original tx has the rbf flag set, it can be replaced by another transaction using the same unspent outputs as an input. You can change the address(es) being funded, as well as the values they're funded with.  This is why services like bitpay don't like rbf tx's
In short, describing it as "cancellation" is inaccurate but rather "Replace," but how can output addresses be modified because, AFAIK from this[1], the fees can only be modified. "If the wallet does not support RBF."
What about delete unconfirmed transactions using bitcoin-core with

Code:
 -zapwallettxes -rescan flags

delete it from my wallet & spend at least one of the same inputs?

[1] https://steemit.com/bitcoin/@profitgenerator/tutorial-how-to-fix-unconfirmed-transactions
mocacinno
Legendary
*
Offline Offline

Activity: 3402
Merit: 4984


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
May 18, 2020, 01:55:21 PM
 #6

@hugeblack

The "bump fee of an opt-in rbf tx" feature of, for example, electrum is indeed using the rbf flag set on the original transaction to replace it with a transaction with a higher fee. But AFAIK, you can also replace the transaction with a transaction funding a totally different address. This is, however, not implemented into the gui of most popular wallets (because of obvious reasons).

bitcoind -help | grep zapwallettxes:
Quote
Delete all wallet transactions and only recover those parts of the blockchain through -rescan on startup (1 = keep tx meta data e.g. account owner and payment request information, 2 = drop tx meta   data)

Basically, by starting bitcoind with these arguments, and re-using the same unspent outputs, you have created a double spending transaction. Most nodes will reject this tx unless the original transaction had the rbf flag set.

What i'm trying to say:
It doesn't matter if you're bumping the fee of a tx with the rbf flag set, or if you zap your wallet txes and then re-use some of the same unspent outputs, or if you create a new transaction using the same unspent outputs that have been used for an unconfirmed tx with the rbf flag set. You're basically double spending in all these cases. The big difference is that if a tx has the rbf flag set, you're basically telling the node it's OK to replace the original transaction, whilst if this flag is not set most nodes will reject the double spending transaction.

Bottomline: if you're selling something, wait for a confirmation before delivering goods or services. If the tx that's being used to pay you is opt-in RBF, defenately wait for one confirmation. The RBF flag is not evil, in times of mempool congestion i'd urge everybody to opt-in rbf, but chances of getting scammed when accepting 0 conf tx's are slightly higher when this flag was set.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  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!