Bitcoin Forum
May 06, 2024, 10:58:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Internal wallet transfer  (Read 2231 times)
Brunt, FCA (OP)
Member
**
Offline Offline

Activity: 68
Merit: 10



View Profile
June 18, 2014, 08:49:43 AM
 #1

I have stopped using the Bitcoin Core wallet, and I have imported 2 of the private keys into Electrum, which works fine, except that these addresses aren't included in the wallet seed.
Can I do an internal transfer to move my funds from the imported addresses to native addresses in the Electrum wallet that are supported by the seed?
1715036324
Hero Member
*
Offline Offline

Posts: 1715036324

View Profile Personal Message (Offline)

Ignore
1715036324
Reply with quote  #2

1715036324
Report to moderator
1715036324
Hero Member
*
Offline Offline

Posts: 1715036324

View Profile Personal Message (Offline)

Ignore
1715036324
Reply with quote  #2

1715036324
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
June 18, 2014, 08:53:40 AM
 #2

Let me start with saying ST9 is awesome.

To do what you want you can do the following.

* Go to addresses (or receive depending on your version) and right mouse click the address you want to empty.
* Select "Send from"
* Go to the amount input and press !, this should fill in the total amount at this address.

Repeat for each imported key you want to empty.

It will cost you a little fee but it's the best way to clear them out.

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
June 18, 2014, 10:47:19 AM
 #3

Repeat for each imported key you want to empty.
no need to do several transactions.
you can select multiple addesses and send from all of them.

Electrum: the convenience of a web wallet, without the risks
Brunt, FCA (OP)
Member
**
Offline Offline

Activity: 68
Merit: 10



View Profile
June 18, 2014, 11:24:00 AM
 #4

Quote
It will cost you a little fee

Your described method would have worked fine, except that the amount that I was trying to transfer was 26.04785 mBTC, and the fee was 31.2 mBTC!

I think that my imported addresses contained quite a bit of useless unspendable bitdust.
dabura667
Sr. Member
****
Offline Offline

Activity: 475
Merit: 252


View Profile
June 18, 2014, 04:16:17 PM
 #5

Quote
It will cost you a little fee

Your described method would have worked fine, except that the amount that I was trying to transfer was 26.04785 mBTC, and the fee was 31.2 mBTC!

I think that my imported addresses contained quite a bit of useless unspendable bitdust.

0.2 mBTC is the default per/kB fee... How could your tx be 156 kB?  I want to see the unsigned transaction... seriously... how many inputs... my brain is boggled.


You could always try to consolidate with a no-fee tx... it might take a few days to confirm tho.

https://bitcointalk.org/index.php?topic=644533.msg7230650#msg7230650
This post of mine will tell you how to send no-fee tx in Electrum.
Warning: don't make a habit of it, so once you're done, change the bitcoin.py back.

My Tip Address:
1DXcHTJS2DJ3xDoxw22wCt11FeAsgfzdBU
Brunt, FCA (OP)
Member
**
Offline Offline

Activity: 68
Merit: 10



View Profile
June 18, 2014, 07:05:41 PM
 #6

I tried using the method described in the other thread.
I changed MIN_RELAY_TX_FEE =  in /lib/bitcoin.py from 10000 to 1000, and reduced the default fee in the settings from 0.2 mBTC to  0.01 mBTC.
When I tried to send the transaction, the fee was 1.56 mBTC.
After 15 minutes of waiting for it to send, I received an error message:  error: {u'message': u'TX rejected', u'code': -22}
dabura667
Sr. Member
****
Offline Offline

Activity: 475
Merit: 252


View Profile
June 18, 2014, 07:19:01 PM
 #7

I tried using the method described in the other thread.
I changed MIN_RELAY_TX_FEE =  in /lib/bitcoin.py from 10000 to 1000, and reduced the default fee in the settings from 0.2 mBTC to  0.01 mBTC.
When I tried to send the transaction, the fee was 1.56 mBTC.
After 15 minutes of waiting for it to send, I received an error message:  error: {u'message': u'TX rejected', u'code': -22}

15 minutes!!!!!!!!! WOW!

You must have a lot of inputs....


Here's a tip to make sure you don't have to wait again:

Try using Create transaction > From CSV text.

In the box, write the destination address, a comma, and then the amount (in BTC)

Code:
1FYrgGoniPUuiSXPmQ6D53rdwod5V1z6eQ, 0.01
This would send 10 mBTC to 1FYrgGoniPUuiSXPmQ6D53rdwod5V1z6eQ. (this does not include fees, so you should subtract 1.56 mBTC from your total balance and send that.

Doing it this way will show a transaction dialogue. Clicking "Sign" will sign it.

You can save the signed transaction file and try re-broadcasting it multiple times. Probably a good idea if signing took 15 minutes.


If you can post the raw transaction, I might be able to tell you why it failed.

My Tip Address:
1DXcHTJS2DJ3xDoxw22wCt11FeAsgfzdBU
Brunt, FCA (OP)
Member
**
Offline Offline

Activity: 68
Merit: 10



View Profile
June 18, 2014, 08:59:13 PM
 #8

When I tried to send normally, the amount to send said 3.58215 mBTC, with a fee of 1.56 mBTC.
I tried to create a transaction of 3.59215 mBTC using: Create transaction > From CSV text, but the Transaction box looked all wrong, with 0 BTC sent, and a negative fee!
It took 20 minutes to sign, with the Python process using 900MB of memory. I saved the file, but haven't tried to broadcast it.
I'm not at all familiar with this non-standard usage. Where would I find the raw transaction?
dabura667
Sr. Member
****
Offline Offline

Activity: 475
Merit: 252


View Profile
June 19, 2014, 02:46:04 AM
 #9

When I tried to send normally, the amount to send said 3.58215 mBTC, with a fee of 1.56 mBTC.
I tried to create a transaction of 3.59215 mBTC using: Create transaction > From CSV text, but the Transaction box looked all wrong, with 0 BTC sent, and a negative fee!
It took 20 minutes to sign, with the Python process using 900MB of memory. I saved the file, but haven't tried to broadcast it.
I'm not at all familiar with this non-standard usage. Where would I find the raw transaction?

The transaction box will always show a negative fee. And when sending to yourself, Electrum detects it is sending to itself and adjusts to tell you how much coin is leaving your wallet. So it says 0 if you send to yourself.

Open the signed transaction file in a word editor.

You should see something like
Code:
"hex": "01000000...
Copy the entire hex string inside the quotes after "hex":

Here's an example of what a signed raw transaction looks like.

Code:
01000000021e471cd741587122765369c24d788c865f6943aff06968a58757b1c6751a5d05010000006a47304402204e060c4d3e9c3ea1d1bf4ec055122c2216336d9cbb1f736df0862a2891f2b945022042915f2ba2a95a36a832dfc3c8a4e4357d713d5df610adaf82bc8a388df557850121036c38c71c8f869e74ab8f4dfacbab38dfdef27b42f250eef560f991943c1b3327ffffffff24d5f6f0f74c573e8ab09c52e32d1fdec5a91bc222cb6640d9459f6f03ad13e7010000006b483045022100e35e28e6fa8cb6ee923c4d6a81113a2d6e62d456338045028de764b389ecd8b9022013e2d46db521b137242e7044d7b1aec4a3840f6071195aebef5b5335d0bd32900121036c38c71c8f869e74ab8f4dfacbab38dfdef27b42f250eef560f991943c1b3327ffffffff0133e60300000000001976a914cd73598414597e3110f26f8a1d6ab3b849c1ef4788ac00000000

My Tip Address:
1DXcHTJS2DJ3xDoxw22wCt11FeAsgfzdBU
Brunt, FCA (OP)
Member
**
Offline Offline

Activity: 68
Merit: 10



View Profile
June 19, 2014, 05:12:33 AM
 #10

My saved transaction file is 254.0 kB (254,003 bytes) in size. When I tried to post it here I received the message:
 
The following error or errors occurred while posting this message:
The message exceeds the maximum allowed length (64000 characters).

Just out of interest, my default_wallet file in my .electrum folder is 59.2 MB (59,235,431 bytes).
dabura667
Sr. Member
****
Offline Offline

Activity: 475
Merit: 252


View Profile
June 19, 2014, 05:19:26 AM
 #11

My saved transaction file is 254.0 kB (254,003 bytes) in size. When I tried to post it here I received the message:
 
The following error or errors occurred while posting this message:
The message exceeds the maximum allowed length (64000 characters).

Just out of interest, my default_wallet file in my .electrum folder is 59.2 MB (59,235,431 bytes).

http://0bin.net/

Go to this site, paste the signed transaction and click submit. (You can set it for 1 day and it will disappear after 1 day)

Then post the link here. (including all the gibberish after the # and it should end with a = )

My Tip Address:
1DXcHTJS2DJ3xDoxw22wCt11FeAsgfzdBU
Brunt, FCA (OP)
Member
**
Offline Offline

Activity: 68
Merit: 10



View Profile
June 19, 2014, 08:07:22 AM
 #12

I've uploaded my saved transaction file to:
http://0bin.net/paste/wsJSxJggZsHdzIf0#S0pW++aLllF3fPy4E1PAOkWp5ZdeRhkrE2NHRe9Lqek=

I'm trusting you on this that this information can't be used to steal my coins!
dabura667
Sr. Member
****
Offline Offline

Activity: 475
Merit: 252


View Profile
June 19, 2014, 09:14:18 AM
 #13

I've uploaded my saved transaction file to:
http://0bin.net/paste/wsJSxJggZsHdzIf0#S0pW++aLllF3fPy4E1PAOkWp5ZdeRhkrE2NHRe9Lqek=

I'm trusting you on this that this information can't be used to steal my coins!

I decoded your transaction manually, because all the decode transaction tools on the net gave back -22 error and wouldn't give a deserialized transaction.

Electrum's decode transaction command gave me back the following, but it didn't print out the signatures and just says "null"
But in the raw transaction, the signatures are all there, and I verified each one individually and they all check out ok.

I noticed you were sending two outputs of 583952 and 359215 satoshis to the same address.
Add together your 156000 satoshi fee, and I assume your total balance to be 1099167 satoshis.

What you might want to try and do is send just smaller amounts to consolidate without going over 100 kB.

A lot of the servers were telling me errors saying "error -22 over 100kB" So maybe send 3 mBTC at a time to yourself to consolidate.

Send them to separate addresses, then use the right click > send from button to slowly empty out the address in a few transactions. Maybe splitting into 3 will help.


Other than that, everything looks fine. Perhaps 100kB is the upper limit for transaction size?

Edit:

Here's the deserialized raw transaction, without the signatures.

http://0bin.net/paste/w8DGRILBfxr2Bf5x#/evNhWe5JyUb5rQpt+3jEKK8JvYntanfLaZB0fGfAIk=

My Tip Address:
1DXcHTJS2DJ3xDoxw22wCt11FeAsgfzdBU
zetaray
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500


View Profile
June 19, 2014, 09:30:03 AM
 #14

I have a ton of dust in other address I have. They are all from faucets. It costs too much to send them now. I decided to leave them there and wait until the transaction fee to drops to 0.00001 btc/k. I might have to wait for a year or so, it's better than loosing half of it.

.CryptoTotal.com.
                              l█████████▇▀
                              ████████▇▀
                              ███████▇▀
                              ██████▇▀
                              █████▇▀
                              ████▇▀
                              ███▇▀
                              ██▇▀
                              █▇▀
                              ▇▀
▇▇
▇▇

Express.Crypto.Checkout
Accepts Multiple Cryptos
Worldwide Shipping
Brunt, FCA (OP)
Member
**
Offline Offline

Activity: 68
Merit: 10



View Profile
June 19, 2014, 12:18:11 PM
 #15

Quote
I noticed you were sending two outputs of 583952 and 359215 satoshis to the same address.
Add together your 156000 satoshi fee, and I assume your total balance to be 1099167 satoshis.
That wasn't my intention, as my balance on the 2 imported addresses is 5.15215 mBTC, and after modifying my client as you described, the fee asked for to send it was 1.56 MBTC. I intended to send 3.59215 mBTC, and I don't know where the 5.83952 mBTC came from.

I will take your advice, and attempt sending smaller amounts. I'm not very keen on trying to send with no fee at all, as there is always the risk that the transaction won't get relayed and get stuck in limbo.

@zetaray. Maybe your solution to wait is the best after all, because as micro transactions become more common in the future, fees will inevitably need to be reduced in line with this. At the moment, the Bitcoin system doesn't seem to handle bitdust very well.

As an aside, my Electrum 1.9.8 doesn't seem very stable, and quite often when I start it up it seems to need to re-download all 25MB of the blockchain headers again, then spend over half an hour resynchronizing, with the hard drive thrashing away furiously and using 1GB of RAM before the GUI will display any output!
dabura667
Sr. Member
****
Offline Offline

Activity: 475
Merit: 252


View Profile
June 19, 2014, 04:55:15 PM
 #16

Quote
I noticed you were sending two outputs of 583952 and 359215 satoshis to the same address.
Add together your 156000 satoshi fee, and I assume your total balance to be 1099167 satoshis.
That wasn't my intention, as my balance on the 2 imported addresses is 5.15215 mBTC, and after modifying my client as you described, the fee asked for to send it was 1.56 MBTC. I intended to send 3.59215 mBTC, and I don't know where the 5.83952 mBTC came from.

I will take your advice, and attempt sending smaller amounts. I'm not very keen on trying to send with no fee at all, as there is always the risk that the transaction won't get relayed and get stuck in limbo.

@zetaray. Maybe your solution to wait is the best after all, because as micro transactions become more common in the future, fees will inevitably need to be reduced in line with this. At the moment, the Bitcoin system doesn't seem to handle bitdust very well.

As an aside, my Electrum 1.9.8 doesn't seem very stable, and quite often when I start it up it seems to need to re-download all 25MB of the blockchain headers again, then spend over half an hour resynchronizing, with the hard drive thrashing away furiously and using 1GB of RAM before the GUI will display any output!

I see what happened.

You need to subtract the fee from your address balance that you are trying to consolidate.


... hmm, this might be difficult.

Here, I just sent you the amount you want from your address.

Proof:

tx: https://blockchain.info/tx/0d973022967893495b4e64832d7e8b994cf9ca1dc9462208c38a71d2c63f48df

Code:
-----Message-----
I dabura667 of bitcointalk.org forum just sent you the money you're trying to consolidate on June 19th.
-----Address-----
1PoUvdwUpQ9hohVPFiFoX1SAmrrBZcKc1a
-----Signature-----
HHNpLvZCiHVfCeYcwiQTKdGupHVtoUNZfD3gVnmZFivkRy5csCXBALMjB4bJbPmjMWxQXf46sOHZTiV2M4UHB6k=
------------------

Just PM me your private key and I'll consolidate it and send it to myself.

Thanks.

My Tip Address:
1DXcHTJS2DJ3xDoxw22wCt11FeAsgfzdBU
Brunt, FCA (OP)
Member
**
Offline Offline

Activity: 68
Merit: 10



View Profile
June 21, 2014, 10:46:36 AM
 #17

PM sent.
Brunt, FCA (OP)
Member
**
Offline Offline

Activity: 68
Merit: 10



View Profile
July 08, 2014, 08:11:09 AM
 #18

Thank you very much. You have been very helpful to me, and I appreciate what you have done.
dabura667
Sr. Member
****
Offline Offline

Activity: 475
Merit: 252


View Profile
July 08, 2014, 11:48:10 AM
 #19

Thank you very much. You have been very helpful to me, and I appreciate what you have done.
You're welcome, glad to have helped.

My Tip Address:
1DXcHTJS2DJ3xDoxw22wCt11FeAsgfzdBU
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!