Bitcoin Armory 101 – generate list of BTC addresses from command line

Using Armory as my primary Bitcoin Wallet I played around with the Armorys python scripts.

Goal: pre-generate a list of 100 BTC addresses from my personal Armory wallet and make accessible.

Using Armory With Python

Armory was built in Python because of its extraordinary flexibility and ease of extensibility. Even the parts of Armory that are implemented in C++ have been made accessible through familiar Python syntax using SWIG. Just about everything related to Bitcoin and Armory is accessible by importing in the base BitcoinArmory directory. Both and are just large python scripts that use that engine, and therefore all functionality needed for a full client implementation is available using just…. [read more]

1. Find your Armory installation path:

By default, Armory is installed to the following locations:

Windows: C:\Program Files (x86)\Armory
Linux: /usr/lib/armory
OS X: /Applications/

2. use this script to access your Wallet and get a new BTC addresses:

#! /usr/bin/python
import sys
sys.path.append(„/usr/lib/armory/“) # change this path if needed !
from armoryengine.ALL import *

wlt = PyBtcWallet().readWalletFile( CLI_ARGS[0] )
print wlt.getNextUnusedAddress().getAddrStr()

3. Now run this script 100 times to generate 100 BTC addresses
Use a small Bash script to get things done:

for (( c=1; c<=100; c++ )) do echo "$c generated" /home/$user/ /media/$user/.armory/armory_XXXXXXX_.wallet | tee >> /home/$user/armory/BtcAddressGen.txt


4. Upload your text file to your webspace and use a small PHP script to show one address and delete it from the list. (protect it via basic auth and don’t blame me for any RFI)


Liked it? Feel free to donate: 1H4amKeadr16UYRGkMz1nqFtiAxYV4zpyS

Tags: , ,


Schreibe einen Kommentar