Pages:
Author

Topic: Bitcoin Wallet v0.8.6 beta (Read 1665 times)

full member
Activity: 228
Merit: 100
This is not good for my Chi... Yifu
June 25, 2017, 09:29:02 AM
#28
OK Success,
I loaded the 218 keys and swept them, the transaction window says there were 4 individual transactions totaling 2504.52489 mBTC. So the default transaction fees amounted to 0.00225 BTC, which is nice   Smiley


Thanks for all of the input,
kev.
HCP
legendary
Activity: 2086
Merit: 4318
June 25, 2017, 07:10:12 AM
#27
Theoretically, I think you can just attempt to sweep all the private keys and it will just discard the ones with zero balance... so you don't need to go through them all one by one.

Alternatively, you can create a new Electrum wallet using the "Use public or private keys" option in Electrum and it will let you import all those private keys in one go so you can pretty much instantly see the entire transaction history of all your keys/addresses... and what your final balance currently is.

I wouldn't recommend keeping them in a public/private key Electrum wallet long term. I would suggest that after you are happy that you have all your coins, that you then send the coins to an address in a new HD "seeded" Electrum wallet for the added safety that a seeded wallet provides (full restore from just 12 word seed etc). This is effectively what sweeping does anyway.
full member
Activity: 228
Merit: 100
This is not good for my Chi... Yifu
June 25, 2017, 06:25:27 AM
#26
Thanks very much for that input.
I do not have an in depth knowledge of the intricacies of the QT wallet so I am confused to say the least.
When I used pywallet to dumpprivkey contents to wallet.txt, it gave about 200 addresses and keys. I only ever used the single address for transactions so perhaps some of those addresses listed are "change addresses" as previously pointed out by achow.
Now that I have the keys, I want to sweep them into my Electrum wallet so if I use Blockchain.info and identify all the change addresses from my transactions, I can cut and paste the privkeys from the wallet.txt file into Electrum for sweeping along with the key for what I consider as my main wallet address. I'll give it a go and see what happens     Smiley

cheers,
kev
legendary
Activity: 2772
Merit: 2846
June 25, 2017, 05:36:43 AM
#25
Yes, pywallet dumped the data and there were 200+ addresses each with a list of keys including a "sec" key so I am assuming that is the privkey for each address as each one starts with the suffix you mentioned.

I found my wallet address in among the data along with the "change" address you identified, so it looks like it worked   Smiley

So all of those change addresses which are shown on Blockchain.info are in the wallet.txt too?
I am a little confused because I have been through all of the outgoings and incomings recorded in my wallet and the final balance comes to 2.50677 BTC and this is what it shows as confirmed balance. Yet BCI says balance is Zero.

cheers,
kev



I used a website called walletexplorer to check your address 13oxYTF1CDzz63FV6FDMT7xuzpH8TRnYgb. It estimates all the other addresses in a wallet.dat and their balances. You can see the results here.

https://www.walletexplorer.com/wallet/045bba007c5923b5/addresses

It shows this address containing 0.01229653 Bitcoins as part of your wallet

17LXn6KpumyBbyuz9MyeZ6WVLZwfBpF92s

It also shows this address containing 0.0104441 Bitcoins as part of your wallet

17gKbFaoRjdpDyNKpdBVkqevdKR5kAS3Mi

Apart from that all the other addresses it shows are empty. Do you recognise either of the addresses containing coins?

Walletexplorer only estimates which addresses are in a wallet, so there might be others it missed.

full member
Activity: 228
Merit: 100
This is not good for my Chi... Yifu
June 25, 2017, 04:20:50 AM
#24
Yes, pywallet dumped the data and there were 200+ addresses each with a list of keys including a "sec" key so I am assuming that is the privkey for each address as each one starts with the suffix you mentioned.

I found my wallet address in among the data along with the "change" address you identified, so it looks like it worked   Smiley

So all of those change addresses which are shown on Blockchain.info are in the wallet.txt too?
I am a little confused because I have been through all of the outgoings and incomings recorded in my wallet and the final balance comes to 2.50677 BTC and this is what it shows as confirmed balance. Yet BCI says balance is Zero.

cheers,
kev

staff
Activity: 3458
Merit: 6793
Just writing some code
June 25, 2017, 02:54:58 AM
#23
Very strange....
The last transaction on your link is a send to:   1EExPs6ykuk7hfHbQZfpdf39cqMuC5LuWL  @ 4.4999 BTC on 23rd Jan 2014.
There is no record of this in my wallet transactions:
Yes there is, the transaction that you highlighted is that transaction. 1EE... is a change address of yours; the other output in that transaction corresponds to who you actually sent the Bitcoin to as indicated by the transaction list.



Did pywallet work? Your private keys will be 51 or 52 characters long and begin with a 5, K, or L. If you see any strings like that, then you have private keys which you can try to import into another wallet.
full member
Activity: 228
Merit: 100
This is not good for my Chi... Yifu
June 25, 2017, 02:48:31 AM
#22
It would appear that that address is empty anyway (and has been since Jan 2014): https://blockchain.info/address/13oxYTF1CDzz63FV6FDMT7xuzpH8TRnYgb

Perhaps your coins are contained in other addresses? You might want to start checking all the addresses that pywallet dumped on a block explorer and see if you can find the one(s) that has your 2.5 BTC

Another option could be to backup the wallet file... and then update the bitcoin client? Not necessarily to the very latest, but at least something after 0.8.6 and see if it is more stable.



Very strange....
The last transaction on your link is a send to:   1EExPs6ykuk7hfHbQZfpdf39cqMuC5LuWL  @ 4.4999 BTC on 23rd Jan 2014.
There is no record of this in my wallet transactions:



I have been through every transaction listed in my wallet and the balance shown is correct, yet it does not tally with your link. The 4.4999 BTC transaction above is worrying??

cheers,
kev
newbie
Activity: 28
Merit: 0
June 25, 2017, 02:46:11 AM
#21
In Electrum 2.0, you cannot import private keys in a wallet that has a seed. You should sweep them instead.
If you want to import private keys and not sweep them you need to create a special wallet that does not have a seed. For this, create a new wallet, select “restore”, and instead of typing your seed, type a list of private keys, or a list of addresses if you want to create a watching-only wallet.
full member
Activity: 228
Merit: 100
This is not good for my Chi... Yifu
June 25, 2017, 02:03:47 AM
#20
Thanks for that,
The last transaction from this wallet was on 12th February 2014 where I sent 1 BTC.
I noticed whilst the wallet was syncing it got to 116 weeks to go and the confirmed balance was still 2.5 odd BTC. The coins are unlikely to be stored under another address as I only ever used the single address in this particular wallet.
It has been dormant on a disused laptop since it was last used, offline with full encryption.
I am checking through all the transaction list now.

cheers,
kev
HCP
legendary
Activity: 2086
Merit: 4318
June 24, 2017, 10:07:23 PM
#19
It would appear that that address is empty anyway (and has been since Jan 2014): https://blockchain.info/address/13oxYTF1CDzz63FV6FDMT7xuzpH8TRnYgb

Perhaps your coins are contained in other addresses? You might want to start checking all the addresses that pywallet dumped on a block explorer and see if you can find the one(s) that has your 2.5 BTC

Another option could be to backup the wallet file... and then update the bitcoin client? Not necessarily to the very latest, but at least something after 0.8.6 and see if it is more stable.

full member
Activity: 228
Merit: 100
This is not good for my Chi... Yifu
June 24, 2017, 09:55:01 AM
#18
As soon as I enter walletpassphrase 600 the client crashes saying it has requested runtime to terminate in an unusual manner.

when I enter dumpprivkey it returns:

20:50:46

dumpprivkey 13oxYTF1CDzz63FV6FDMT7xuzpH8TRnYgb


20:50:48

Private key for address 13oxYTF1CDzz63FV6FDMT7xuzpH8TRnYgb is not known (code -4)
                                                                                            ?
Passphrase is correct as shown from the text dump using pywallet   Sad

cheers,
kev

HCP
legendary
Activity: 2086
Merit: 4318
June 24, 2017, 08:23:03 AM
#17
Did you do the "walletpassphrase " command?

Something like: walletpassphrase thisIsMyPassword 600

Then try the dumpprivkey command again.
full member
Activity: 228
Merit: 100
This is not good for my Chi... Yifu
June 24, 2017, 07:35:55 AM
#16
Just tried the "dumprivpkey" in the wallet again and it gave:


18:32:06

dumpprivkey 13oxYTF1CDzz63FV6FDMT7xuzpH8TRnYgb passphrase


18:32:09

dumpprivkey
Reveals the private key corresponding to . (code -1)


18:33:05

dumpprivkey 13oxYTF1CDzz63FV6FDMT7xuzpH8TRnYgb


18:33:05

Private key for address 13oxYTF1CDzz63FV6FDMT7xuzpH8TRnYgb is not known (code -4)

cheers,
kev
full member
Activity: 228
Merit: 100
This is not good for my Chi... Yifu
June 24, 2017, 06:27:32 AM
#15
Thanks very much,
I tried all of that, put the following in the Pywallet.py command

 C:\pywallet-master> pywallet.py --dumpwallet actual wallet address > wallet.txt --passphrase actual passphrase  
and I got the following:

WARNING:root:pycrypto or libssl not found, decryption may be slow.

Now there is now a wallet.txt file in the pywallet folder contains:

'ecdsa' package is not installed, pywallet won't be able to sign/verify messages
Wallet data not recognized: {'__type__': 'orderposnext', '__value__': '\x93\x00\x00\x00\x00\x00\x00\x00', '__key__': '\x0corderposnext'}
The wallet is encrypted and the passphrase is correct
{
    "bestblock": "numerical code here",     
    "ckey": [],
    "defaultkey": "13oxYTF1CDzz63FV6FDMT7xuzpH8TRnYgb",
    "keys": [

There are a list of addresses (none of which I have ever used) and associated "encrypted-privkey", "hexsec" , "pubkey" , "sec" , "secret" data
Not sure if it has dumped the privkey for 13oxYTF1CDzz63FV6FDMT7xuzpH8TRnYgb ??

cheers,
kev

staff
Activity: 3458
Merit: 6793
Just writing some code
June 23, 2017, 02:11:05 AM
#14
Perhaps itr might be better if I uninstall everything I have done so far and start over,
I have other wallet.dat files which I need to get keys from so this route would be the best option
This is a guide you published in Dec 2015, please can you review it and add any changes?

Sure.

Quote
Go to https://www.python.org/downloads/ and download python 2.7.11. Run the installer and it will install python. Make sure that when you get to the "Customize features" screen you scroll down and click the dropdown next to "Add python.exe to path" Select "Will be installed on local hard drive" then you can continue.

Then download this file: https://github.com/downloads/jackjack-jj/pywallet/PWI_0.0.3.exe (just click the link)

Run the program and have it extract to whatever folder you want. Follow the wizard. Once it finishes, go to that folder. If you do not see a file named pywallet.py, double click the file named install.bat. A command prompt will appear briefly and then disappear. Once it is gone, you should now see the pywallet.py file.

In the folder where pywallet.py is located, make sure that nothing is selected. Then do Shift + Right Click and in the menu that pops up select "Open command window here". In the window that pops up, type

Code:
pywallet.py --dumpwallet > wallet.txt

This command will dump everything from the wallet to a file in the same folder called wallet.txt. If you have a passphrase on the wallet, add the option --passphrase to the command after pywallet.py and --dumpwallet. Make sure there are spaces between them all. If the directory where your wallet is located is not the Bitcoin default, then you will also need the --datadir= option also added in in the same manner as the passphrase.
full member
Activity: 228
Merit: 100
This is not good for my Chi... Yifu
June 22, 2017, 11:41:47 PM
#13
Perhaps itr might be better if I uninstall everything I have done so far and start over,
I have other wallet.dat files which I need to get keys from so this route would be the best option
This is a guide you published in Dec 2015, please can you review it and add any changes?


Go to https://github.com/jackjack-jj/pywallet and download the zip file. Extract the stuff to another folder.

Then go to https://www.python.org/downloads/ and download python 2.7.11. Run the installer and it will install python. Make sure that when you get to the "Customize features" screen you scroll down and click the dropdown next to "Add python.exe to path" Select "Will be installed on local hard drive" then you can continue.

Then go to https://pypi.python.org/pypi/zope.interface/4.1.3#downloads and select the correct file. The file you want will be either zope.interface-4.1.3-py2.7-win32.egg or zope.interface-4.1.3-py2.7-win-amd64.egg depending on if your windows version is 32 bit (the first file) or 64 bit (second file).

Then download https://bootstrap.pypa.io/ez_setup.py. If that link brings you to a page of text, right click and select "save as"

Go to the folder where you saved the ez_setup file and make sure that nothing is selected. Then do Shift + Right Click and in the menu that pops up select "Open command window here". In the window that pops up, type
Code:

ez_setup.py


After that runs, close that window and go to the folder where you installed python. Then go to the scripts folder within that. Copy the zope interface file you downloaded to that folder. Then open the command window again. This time type
Code:

easy_install.exe

where is the name of the file you copied.

Then go to the folder where you extracted the pywallet files and open another command window. Here just type
Code:

pywallet.py --dumpwallet > wallet.txt

This command will dump everything from the wallet to a file in the same folder called wallet.txt. If you have a passphrase on the wallet, add the option --passphrase to the command after pywallet.py and --dumpwallet. Make sure there are spaces between them all. If the directory where your wallet is located is not the Bitcoin default, then you will also need the --datadir= option also added in in the same manner as the passphrase.

cheers,
kev
staff
Activity: 3458
Merit: 6793
Just writing some code
June 22, 2017, 01:05:15 PM
#12
Spent most of the afternoon trying to research then follow JJ's pywallet approach which you suggested. I found one of your very detailed and step by step posts on how to go about the whole dl process and thought... hey... even I can do this. but as I confidently opened up cmd and typed in ez_setup.py I was met with:   'ez_setup.py is not recognized as an internal or external command, operable program or batch file.' uninstalled everything and started again, making double sure I followed your instructions and downloaded the correct files but same again.
You need to install python 2 and when you install it, make sure that it is added to the path (I think there is an option for that in the installer). Then when you want to run any of the python scripts, you need to do
Code:
python
full member
Activity: 228
Merit: 100
This is not good for my Chi... Yifu
June 22, 2017, 10:39:40 AM
#11
10 minutes after I entered the dumpprivkey cmd:

2017-06-22 14:31:26 *** System error: CDB() : can't open database file wallet.dat, error -30974

full member
Activity: 228
Merit: 100
This is not good for my Chi... Yifu
June 22, 2017, 10:35:42 AM
#10
The wallet immediately freezes so I cannot enter the wallet debug log file   Sad

Could you post the debug.log file?
You do not need to run the wallet to open the debug.log file. The file is in your DATADIR (the place where you normally find your wallet.dat file).

thanks,
got it   Smiley
full member
Activity: 228
Merit: 100
This is not good for my Chi... Yifu
June 22, 2017, 10:33:36 AM
#9
Shouldn't it at least give some sort of response?



cheers,
kev
Pages:
Jump to: