Bitcoin Forum
May 07, 2024, 08:38:15 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Batch-Address Generator  (Read 883 times)
Brainslug (OP)
Newbie
*
Offline Offline

Activity: 35
Merit: 0


View Profile
June 18, 2011, 06: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.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715114295
Hero Member
*
Offline Offline

Posts: 1715114295

View Profile Personal Message (Offline)

Ignore
1715114295
Reply with quote  #2

1715114295
Report to moderator
1715114295
Hero Member
*
Offline Offline

Posts: 1715114295

View Profile Personal Message (Offline)

Ignore
1715114295
Reply with quote  #2

1715114295
Report to moderator
1715114295
Hero Member
*
Offline Offline

Posts: 1715114295

View Profile Personal Message (Offline)

Ignore
1715114295
Reply with quote  #2

1715114295
Report to moderator
willphase
Hero Member
*****
Offline Offline

Activity: 767
Merit: 500


View Profile
June 18, 2011, 06: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

Brainslug (OP)
Newbie
*
Offline Offline

Activity: 35
Merit: 0


View Profile
June 18, 2011, 07:25:40 PM
 #3

Oh wow, thanks. I should've known that there's an API for the client...  Lips sealed
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!