Title: bitcoin-cli getnewaddress Creates an address, but where is the private key? Post by: Blinken on February 14, 2017, 05:34:38 AM When I issue the following command:
Code: bitcoin-cli getnewaddress sure enough, an address is returned. But where is the private key? In order to transmit coins out of that address I will need a private key. Title: Re: bitcoin-cli getnewaddress Creates an address, but where is the private key? Post by: achow101 on February 14, 2017, 05:59:41 AM It's in bitcoind's wallet. getnewaddress is an RPC call that works with the built-in wallet, and IIRC will be disabled if wallet functionality is disabled. To send the Bitcoin, there are various send* RPCs as well. Just do bitcoin-cli help to get info on what commands are available, and bitcoin-cli help <command> will give you detailed help for whatever command you want.
Title: Re: bitcoin-cli getnewaddress Creates an address, but where is the private key? Post by: coinableS on February 16, 2017, 01:38:55 AM You can get the private key of the newly created address using the dumpprivkey command followed by the address.
Code: bitcoin-cli dumpprivkey 1someBTCaddressxlkdFNndmf |