Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Racer8 on February 13, 2014, 10:03:06 PM



Title: Lost BTC via a piggy back transaction
Post by: Racer8 on February 13, 2014, 10:03:06 PM
My everyday wallet seems to have lost part of a BTC via a transaction I made.  When I looked at the transaction details it had two send addresses- my intended address and amount and another address and amount unknown to me.  I use an encrypted qt client on windows (please don't tell me not to use Windows - I already know it's not ideal).  I'm guessing my password has not been compromised (I'll regenerate another offline anyway)  but it looks like the client has been modified to include a piggyback transaction once the password has been entered.  Has anyone seen anything like this before?


Title: Re: Lost BTC via a piggy back transaction
Post by: Rannasha on February 13, 2014, 10:20:45 PM
With 99.9% certainty:

The "other address" is the change-address, which is also in your wallet but hidden.

For more details, see: https://en.bitcoin.it/wiki/Change


Title: Re: Lost BTC via a piggy back transaction
Post by: Racer8 on February 13, 2014, 10:35:59 PM
Thanks for the reply.  If it is a change address then my balance would not be zero?  Also the other transaction was outgoing not incoming.


Title: Re: Lost BTC via a piggy back transaction
Post by: Sonny on February 14, 2014, 07:02:15 AM
Thanks for the reply.  If it is a change address then my balance would not be zero?  Also the other transaction was outgoing not incoming.

Say, if you have a piece of 10btc, and want to send 5btc to Amy.
The tx you created would be:
(1) Input = that 10btc
(2) Output 1 = 5btc to Amy
(3) Output 2 = 5btc to your change address

No worries, you wallet would calculate your balance correctly.
Different wallets have different ways to show the change addresses.

For example, if you are using bitcoin-qt, you will not be able to "see" your change address in your receive tab.


Title: Re: Lost BTC via a piggy back transaction
Post by: Abdussamad on February 14, 2014, 08:34:47 AM
Thanks for the reply.  If it is a change address then my balance would not be zero?  Also the other transaction was outgoing not incoming.

Post the transaction IDs so we can take a look.


Title: Re: Lost BTC via a piggy back transaction
Post by: Racer8 on February 14, 2014, 09:12:41 AM
Thanks.

Txid is 830bc90c870c86cbde64eb6506022c42223b4a699169254f457859525816efc3.

The 0.1 BTC send is mine.  The other send is not.  Does not look like change to me?


Title: Re: Lost BTC via a piggy back transaction
Post by: Rannasha on February 14, 2014, 09:17:30 AM
Thanks.

Txid is 830bc90c870c86cbde64eb6506022c42223b4a699169254f457859525816efc3.

The 0.1 BTC send is mine.  The other send is not.  Does not look like change to me?

That is exactly what a transaction with change would look like.


Title: Re: Lost BTC via a piggy back transaction
Post by: Racer8 on February 14, 2014, 09:32:51 AM
Fair enough. How do I find the transaction showing me the change coming back please?


Title: Re: Lost BTC via a piggy back transaction
Post by: Abdussamad on February 14, 2014, 09:45:22 AM
Fair enough. How do I find the transaction showing me the change coming back please?

It is the same transaction as above (https://blockchain.info/tx/830bc90c870c86cbde64eb6506022c42223b4a699169254f457859525816efc3). You can see one input and two outputs. The 0.1 output to 1Angel.. is the address you wanted to send the coins to and the other output 1frs.. is your change address.

What bitcoin client are you using? Bitcoin-qt? Electrum? These days there's a bug that's causing all sorts of confusion regarding wallet balances. You might be affected by that.


Title: Re: Lost BTC via a piggy back transaction
Post by: Racer8 on February 14, 2014, 12:14:39 PM
I'm using bitcoin-qt.  What I can say is that my wallet balance is now showing zero so no acknowledgement of the change returned.  I'm rescanning the wallet now.


Title: Re: Lost BTC via a piggy back transaction
Post by: Racer8 on February 14, 2014, 12:25:26 PM

It is the same transaction as above (https://blockchain.info/tx/830bc90c870c86cbde64eb6506022c42223b4a699169254f457859525816efc3). You can see one input and two outputs. The 0.1 output to 1Angel.. is the address you wanted to send the coins to and the other output 1frs.. is your change address.


So if I'm following you correctly then in the transaction above then 1FrsRw1VrHNTB7yGn5meCD1i6sSZVLYQUj is a hidden change address in my wallet?


Title: Re: Lost BTC via a piggy back transaction
Post by: Rannasha on February 14, 2014, 12:55:25 PM

It is the same transaction as above (https://blockchain.info/tx/830bc90c870c86cbde64eb6506022c42223b4a699169254f457859525816efc3). You can see one input and two outputs. The 0.1 output to 1Angel.. is the address you wanted to send the coins to and the other output 1frs.. is your change address.


So if I'm following you correctly then in the transaction above then 1FrsRw1VrHNTB7yGn5meCD1i6sSZVLYQUj is a hidden change address in my wallet?

Yes, that is the most logical explanation. Normally the balance Bitcoin-qt shows is accurate and includes the hidden change addresses, but the last few days have been a bit crazy with a new type of attack causing Bitcoin-qt to show wrong balance values.


Title: Re: Lost BTC via a piggy back transaction
Post by: TwinWinNerD on February 14, 2014, 01:16:37 PM
make a rescan, you should find it then.

or dump all your private keys and enter them into a wallet on blockchain.info


Title: Re: Lost BTC via a piggy back transaction
Post by: Racer8 on February 14, 2014, 01:26:43 PM
My qt wallet has been re-scanned - has not showed up.  On the transaction page I can see the transaction to the supposed change address - that should not happen right?

What I did was put this change address into blockchain.info https://blockchain.info/address/1FrsRw1VrHNTB7yGn5meCD1i6sSZVLYQUj.  Yes it looks like a standard send with a change address but what makes me suspicious is that you can see the 0.8999 that is supposedly sent the change address and then 11 minutes later another transaction to the same address that has nothing to do with me (certainly did not show in my wallet).

My theory is that bitcoin-qt is infected and sends the change to an address controlled by someone else.  That would explain the wrong balance values myself and others are seeing?


Title: Re: Lost BTC via a piggy back transaction
Post by: Racer8 on February 14, 2014, 01:33:39 PM
or dump all your private keys and enter them into a wallet on blockchain.info
Thanks - I've never done this before.  Do you mean the dumpprivkeys command in qt?  I tried that with the wallet receive address and got "Private key for address xxxxxxxxxxxxxxxxxxxxxxxxxxxxx is not known (code -4)".  What address do I use?  Is the output a file?


Title: Re: Lost BTC via a piggy back transaction
Post by: Rannasha on February 14, 2014, 01:49:24 PM
or dump all your private keys and enter them into a wallet on blockchain.info
Thanks - I've never done this before.  Do you mean the dumpprivkeys command in qt?  I tried that with the wallet receive address and got "Private key for address xxxxxxxxxxxxxxxxxxxxxxxxxxxxx is not known (code -4)".  What address do I use?  Is the output a file?

You should use the suspected change-address: 1FrsRw...

If it successfully outputs the private key, then this address is indeed a change address in your wallet and the wallet simply isn't showing the balance correctly.

Regarding the second transaction to the 1FrsRw address, that's simple blockchain spam. People sending the minimum amount to random addresses, typically from an address they've labeled with their own website for promotion. Since all transactions are public, it's easy for spammer to gather a list of addresses. Nothing to be concerned about.


Title: Re: Lost BTC via a piggy back transaction
Post by: Racer8 on February 14, 2014, 02:40:51 PM
Unfortunately the private key for 1FrsRw... is not known.  Any other suggestions?


Title: Re: Lost BTC via a piggy back transaction
Post by: Abdussamad on February 14, 2014, 05:31:13 PM
Unfortunately the private key for 1FrsRw... is not known.  Any other suggestions?

You have to unlock the wallet first using the command below:

walletpassphrase <your password> 600

600 is the number of seconds to unlock the wallet i.e. 10 minutes. then run the dumpprivkey on the change address and tell us you see the private key (needless to say don't post the private key here :)).

Another thing you can try is:

validateaddress 1Frs...

If the response to validateaddress contains ""ismine" : true" then the let us know.


Title: Re: Lost BTC via a piggy back transaction
Post by: Racer8 on February 14, 2014, 08:35:07 PM
Not looking good - ismine was false.  Dumprivkey obvoiusly did not work either


Title: Re: Lost BTC via a piggy back transaction
Post by: Abdussamad on February 14, 2014, 08:58:53 PM
Not looking good - ismine was false.  Dumprivkey obvoiusly did not work either

What about

dumpprivkey 1BWxWrPxVcGvYLS4E6kdMEKDmNhPWxtNT6

after a wallet unlock?


Title: Re: Lost BTC via a piggy back transaction
Post by: Racer8 on February 14, 2014, 09:57:17 PM
ismine is true


Title: Re: Lost BTC via a piggy back transaction
Post by: Abdussamad on February 15, 2014, 12:11:06 AM
ismine is true

This is regarding 1BWxWrPxVcGvYLS4E6kdMEKDmNhPWxtNT6  ?? dumpprivkey also worked for this address?

Do you have an old wallet backup? I suggest creating a backup of your current wallet.dat file and then replacing it with the old backup. Then see if your coins show up. If they don't do the dumpprivkey command for the change address (1frs) again to see whether it shows up using in the old backups.

Location of wallet file: https://en.bitcoin.it/wiki/Data_directory


Title: Re: Lost BTC via a piggy back transaction
Post by: technocoma on February 15, 2014, 02:14:06 PM
Sounds quite strange.

Like Abdussamad said I would try recovering from a back up.

If you sent that 0.1 BTC then the rest of it went to a change address which your bitcoin-qt client will have the private key for. If Not then i'm not sure what has happened but I guess it might be a corrupt wallet so isn't able to pull all the private keys out of it & thats why your balance is wrong.


Title: Re: Lost BTC via a piggy back transaction
Post by: Racer8 on February 15, 2014, 10:27:09 PM
Ok, thanks everyone, will try the backup.