Author

Topic: Batch-Address Generator (Read 900 times)

newbie
Activity: 35
Merit: 0
June 18, 2011, 02:25:40 PM
#3
Oh wow, thanks. I should've known that there's an API for the client...  Lips sealed
hero member
Activity: 767
Merit: 500
June 18, 2011, 01:19:06 PM
#2
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list

getnewaddress is what you are after.  Just wrap the call in a for loop to make it a 'batch address generator'

Will
newbie
Activity: 35
Merit: 0
June 18, 2011, 01:07:49 PM
#1
I was wondering if something like that already exists. A simple (command line) tool that you point to a given wallet.dat file and generates a defined number of new addresses out of it and writes them on the console/in a file.

If it doesn't exist I would like to try to write something like that. I tried looking into the source of the official client, but since I don't even know what exactly to look for this turned out to be rather pointless.
So I was wondering if anybody may can give me a few information on how addresses are generated or where I should look in the official client source. I know it's not a that important project or that urgently needed tool, but I actually just want to try it for the sake of programming and trying Cheesy (or in short to just give me something to program) Of course I'll make it open source and provide you with the outcome if you're interested in it.

I guess a sort of step-by-step explanation on how to generate new addresses would be the best start, like 1) read that and that part of the wallet; 2) use that and that algorithm to generate an address; or something like that.

As always, thanks in advance for any productive answers.
Jump to: