Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: brunozisterer on April 17, 2013, 04:14:21 AM



Title: bash command
Post by: brunozisterer on April 17, 2013, 04:14:21 AM
Question: Is there a bash command to produce priv. btc keys ?


Title: Re: bash command
Post by: Justin00 on April 17, 2013, 12:50:34 PM
if your using the main client their are sum commands you can run to do a bunch of things
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

You could put them into bash scripts i suppose..


Title: Re: bash command
Post by: tiktoc on April 17, 2013, 07:27:03 PM
Do you mean generate a new address, or get a private key from a address already in the wallet?

generate a new address in the default account wallet is on the command line
if on unix
Code:
bitcoind getnewaddress ""

to get the private key of a address

Code:
bitcoind listaddressgroupings

Find the address you are looking for in the list and copy it.

Code:
bitcoind dumpprivkey <paste the  copied address here>


You can do the same in the debug window in bitcoin-qt