Author

Topic: How to generate a new BTC address with bitcoind? (Read 521 times)

hero member
Activity: 980
Merit: 1002
Quote
I'm using Python.

You may be also interested in this:

https://github.com/laanwj/bitcoin-python
legendary
Activity: 1092
Merit: 1016
760930
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:[email protected]:8332')
print prx.getnewaddress()
newbie
Activity: 43
Merit: 0
Hi,

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

How can I achieve this?

I'm using Python.
Jump to: