Author

Topic: Connecting to armoryd via JSON-RPC (Read 1366 times)

hero member
Activity: 518
Merit: 502
April 17, 2015, 11:27:02 AM
#2
I have an instance of armoryd fully indexed and running at the same time as bidcoind ( I am watching new blocks being added to the memory pool reported by the armoryd client )

Now I wanted to connect to it via JSON-RPC and being requesting new addresses, checking balances, creating unsigned transactions.

I see these methods in the armoryd.py code, but do I need to manually write my RPC interface to the client? Can I reuse one of the various bitcoind clients pointing toward armoryd? Are they similar enough?

Also..
When I check ~/.armory, I don't see any .conf files? Do I need to manually create one to set my armoryd password, etc. does it share the same structure as the bitcoind.conf?
[/s]

found the configuration file reference in the armoryd.py code.

update
Also here is a related question on SO: https://stackoverflow.com/questions/21049108/connection-refused-with-bitcoin-armory-deamon

I made some successful calls!

Code:
import pyjsonrpc

http_client = pyjsonrpc.HttpClient(
   url = "http://localhost:8225",
   username= "username",
   password = "password"
)

print http_client.call("getwalletinfo")

Couple of things to note, obviously had to install pyjsonrpc via PIP, and also had to create an `armoryd.conf` file in my ~/.armory/ directory, with the username and password in the format: username:password

This isn't documented so far as I can see, but wanted to point that out

Thanks for the hint! I am currently struggling with armoryd's lack of documentation as well...
full member
Activity: 151
Merit: 100
March 01, 2014, 04:15:51 PM
#1
I have an instance of armoryd fully indexed and running at the same time as bidcoind ( I am watching new blocks being added to the memory pool reported by the armoryd client )

Now I wanted to connect to it via JSON-RPC and being requesting new addresses, checking balances, creating unsigned transactions.

I see these methods in the armoryd.py code, but do I need to manually write my RPC interface to the client? Can I reuse one of the various bitcoind clients pointing toward armoryd? Are they similar enough?

Also..
When I check ~/.armory, I don't see any .conf files? Do I need to manually create one to set my armoryd password, etc. does it share the same structure as the bitcoind.conf?
[/s]

found the configuration file reference in the armoryd.py code.

update
Also here is a related question on SO: https://stackoverflow.com/questions/21049108/connection-refused-with-bitcoin-armory-deamon

I made some successful calls!

Code:
import pyjsonrpc

http_client = pyjsonrpc.HttpClient(
   url = "http://localhost:8225",
   username= "username",
   password = "password"
)

print http_client.call("getwalletinfo")

Couple of things to note, obviously had to install pyjsonrpc via PIP, and also had to create an `armoryd.conf` file in my ~/.armory/ directory, with the username and password in the format: username:password

This isn't documented so far as I can see, but wanted to point that out
Jump to: