Author

Topic: Sending bitcoins to a wrong address (Read 179 times)

legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
May 18, 2020, 08:55:21 AM
#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.
legendary
Activity: 2702
Merit: 4002
May 18, 2020, 08:34:37 AM
#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
legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
May 18, 2020, 01: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
legendary
Activity: 3472
Merit: 10611
May 17, 2020, 03: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.
legendary
Activity: 1876
Merit: 3132
May 17, 2020, 02: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 .
newbie
Activity: 16
Merit: 0
May 17, 2020, 01: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.
Jump to: