Bitcoin Forum
June 23, 2024, 03:24:08 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Connecting to armoryd via JSON-RPC  (Read 1352 times)
jordan.dev (OP)
Full Member
***
Offline Offline

Activity: 151
Merit: 100



View Profile WWW
March 01, 2014, 09:15:51 PM
Last edit: March 01, 2014, 11:56:11 PM by jordan.dev
 #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

BLOG | PGP | Bitcoin Trading Professionals | Bitfinex Affiliate Code: kwr9f922HS - 10% of trading fees for 30 days | Live Bitfinex Charts
arnuschky
Hero Member
*****
Offline Offline

Activity: 517
Merit: 501


View Profile
April 17, 2015, 04:27:02 PM
 #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...
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!