Title: Confused about addresses Post by: erl on November 22, 2012, 05:36:23 AM I'm trying to dump addresses from the wallet.dat using pywallet but the results confuse me. I expect to see all addresses visible via bitcoin-qt interface but when grepping the output from pywallet none of them are found.
Am I missing something? -- Erl Cash Title: Re: Confused about addresses Post by: Stephen Gornick on November 22, 2012, 12:16:22 PM I'm trying to dump addresses from the wallet.dat using pywallet but the results confuse me. I expect to see all addresses visible via bitcoin-qt interface but when grepping the output from pywallet none of them are found. Not sure why that is. You could also try Gavin's bitcoin tools, which has a dumpwallet. Title: Re: Confused about addresses Post by: erl on November 22, 2012, 07:07:54 PM I'm trying to dump addresses from the wallet.dat using pywallet but the results confuse me. I expect to see all addresses visible via bitcoin-qt interface but when grepping the output from pywallet none of them are found. Not sure why that is. You could also try Gavin's bitcoin tools, which has a dumpwallet. According to the README (https://github.com/gavinandresen/bitcointools): Quote These tools are becoming obsolete as we move away from using Berkeley DB in Bitcoin-Qt/bitcoind. If you are looking for a tool to manipulate the wallet.dat file, you might want to try https://github.com/joric/pywallet Again I'm running in the circles. Thanks to your reply I got the idea I'm doing something wrong with pywallet so I'll try to fiddle with it a little more. Here's how i call pywallet: Code: [earl@b2x2:~/.bitcoin]$ pwd Title: Re: Confused about addresses Post by: Stephen Gornick on November 22, 2012, 07:27:45 PM Code: [earl@b2x2:~/.bitcoin]$ pywallet.py --datadir=./ --wallet=wallet.dat --dumpwallet | grep "$ADDRESS_VISIBLE_IN_BITCOIN_QT" You probably are not seeing the error message. Try just this. $ pywallet.py --dumpwallet And if the wallet is encrypted, you'll need to add --password=PASSWORD Title: Re: Confused about addresses Post by: erl on November 22, 2012, 09:50:37 PM [earl@b2x2:~/.bitcoin]$ pywallet.py --datadir=./ --wallet=wallet.dat --dumpwallet | grep "$ADDRESS_VISIBLE_IN_BITCOIN_QT" You probably are missing the error message. Try just this. $ pywallet.py --dumpwallet And if the wallet is encrypted, you'll need to add --password=PASSWORD Well that was strange. I deleted the old wallet and let the bitcoin-qt generate a new one, then created a few new addresses, re-run pywallet and finally got what i need. :-) And yes, there's a message about 'ecdsa' but I dont think I need that feature: Quote 'ecdsa' package is not installed, pywallet won't be able to sign/verify messages Title: Re: Confused about addresses Post by: erl on November 23, 2012, 06:05:40 AM Guess i got what i need.
Generating addresses Code: ./vanitygen -k -o keys.txt "" Mass import Code: #!/bin/bash |