Post
Topic
Board Development & Technical Discussion
Re: How to generate a new BTC address with bitcoind?
by
flatfly
on 26/01/2014, 14:10:52 UTC
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()