iancoleman / BitcoinArmory-Daemon

A json rpc interface to BitcoinArmory
4 stars 8 forks source link

BitcoinArmory-Daemon

No Longer Maintained! as of 2013-15-01

Please consult the BitcoinArmory project for the new daemon.

This repository is kept as a reference for the purposes of the original author.


BitcoinArmory-Daemon provides a JSON-RPC interface to Armory which is suitable for use on webservers and other instances where a GUI is not desired.

Installation

How To Use

Ensure bitcoind is running.

Start the bitcoind-daemon json-rpc server

$ python armory-daemon.py

Run this command from the directory the source was extracted to.

Now any client can access through jsonrpc. See https://en.bitcoin.it/wiki/APIreference(JSON-RPC) for examples of how to run a json-rpc client.

The default port for the rpc server is 7070, and can be changed in armory-daemon.py

Available Methods

getbalance()

Returns a decimal value in BTC for the total remaining balance in the wallet.

getnewaddress()

Returns the next address in the wallet as a string.

getreceivedbyaddress(address)

Returns a decimal value in BTC for the amount received by the address.

sendtoaddress(address, amount)

amount is a decimal value in BTC. Returns an unsigned transaction as a string. Implementation of signing and broadcasting is left to the client.

Dependencies

The usual armory dependencies still apply, in addition to

txjson-rpc

$ sudo pip install txJSON-RPC

More info at https://launchpad.net/txjsonrpc