Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: chipbike on January 26, 2014, 01:57:02 PM



Title: How to generate a new BTC address with bitcoind?
Post by: chipbike on January 26, 2014, 01:57:02 PM
Hi,

I need to create new Bitcoin addresses using the command line and bitcoind.

How can I achieve this?

I'm using Python.


Title: Re: How to generate a new BTC address with bitcoind?
Post by: flatfly on January 26, 2014, 02:10:52 PM
Hi,

I need to create new Bitcoin addresses using the command line and bitcoind.

How can I achieve this?

I'm using Python.

This should be the simplest way:

Code:
# requires bitcoinrpc 6K library by jgarzik
# get it from https://github.com/jgarzik/python-bitcoinrpc/archive/master.zip

from bitcoinrpc.authproxy import AuthServiceProxy
prx = AuthServiceProxy('http://rpcuser:rpcpassword@127.0.0.1:8332')
print prx.getnewaddress()


Title: Re: How to generate a new BTC address with bitcoind?
Post by: gdassori on January 26, 2014, 10:54:58 PM
Quote
I'm using Python.

You may be also interested in this:

https://github.com/laanwj/bitcoin-python