Bitcoin Forum
June 15, 2024, 01:10:30 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to generate a new BTC address with bitcoind?  (Read 503 times)
chipbike (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0



View Profile WWW
January 26, 2014, 01:57:02 PM
 #1

Hi,

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

How can I achieve this?

I'm using Python.
flatfly
Legendary
*
Offline Offline

Activity: 1078
Merit: 1016

760930


View Profile
January 26, 2014, 02:10:52 PM
 #2

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()
gdassori
Hero Member
*****
Offline Offline

Activity: 980
Merit: 1002



View Profile
January 26, 2014, 10:54:58 PM
 #3

Quote
I'm using Python.

You may be also interested in this:

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

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!