Bitcoin Forum
May 04, 2024, 04:51:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: How to start Armory json rpc  (Read 351 times)
manjunath2334 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 28, 2018, 06:56:50 AM
 #21

Awesome!!!!! Smiley armoryd rpc got started, just to cross check will paste the log, let me know is that fine.
Quote
python armoryd.py
Traceback (most recent call last):
  File "update_version.py", line 14, in <module>
    f = open(hash_loc, "r")
IOError: [Errno 2] No such file or directory: '.git/91a3137ef1056e15cc606a186b0e508f84c'
/home/techjini
(ERROR) ArmoryUtils.py:3723 - Unsupported language  specified. Defaulting to English (en)
(WARNING) armoryd.py:3140 - ************************************************************************
(WARNING) armoryd.py:3142 - * Please note that armoryd v0.96.4 is beta software and is still in
(WARNING) armoryd.py:3143 - * development. Whenever applicable, the interface is designed to match
(WARNING) armoryd.py:3144 - * that of bitcoind, with function parameters and return values closely
(WARNING) armoryd.py:3145 - * matching those of bitcoind. Despite this, the function parameters and
(WARNING) armoryd.py:3146 - * return values may change, both for ported bitcoind function and
(WARNING) armoryd.py:3147 - * Armory-specific functions.
(WARNING) armoryd.py:3148 - ************************************************************************
(WARNING) armoryd.py:3149 -
(WARNING) armoryd.py:3150 - ********************************************************************************
(WARNING) armoryd.py:3152 - * WARNING!  WALLET FILE ACCESS IS NOT INTERPROCESS-SAFE!
(WARNING) armoryd.py:3153 - *           DO NOT run armoryd at the same time as ArmoryQt if
(WARNING) armoryd.py:3154 - *           they are managing the same wallet file.  If you want
(WARNING) armoryd.py:3155 - *           to manage the same wallet with both applications
(WARNING) armoryd.py:3156 - *           you must make a digital copy/backup of the wallet file
(WARNING) armoryd.py:3157 - *           into another directory and point armoryd at that one. 
(WARNING) armoryd.py:3158 - *           
(WARNING) armoryd.py:3159 - *           As long as the two processes do not share the same
(WARNING) armoryd.py:3160 - *           actual file, there is no risk of wallet corruption.
(WARNING) armoryd.py:3161 - *           Just be aware that addresses may end up being reused
(WARNING) armoryd.py:3162 - *           if you execute transactions at approximately the same
(WARNING) armoryd.py:3163 - *           time with both apps.
(WARNING) armoryd.py:3164 - *
(WARNING) armoryd.py:3165 - ********************************************************************************
(WARNING) armoryd.py:3166 -
(WARNING) armoryd.py:3193 - No lockboxes were loaded.
(WARNING) armoryd.py:3231 - Active wallet is set to GGxjtHsu
(WARNING) armoryd.py:3409 - Registering wallet: GGxjtHsu
(WARNING) armoryd.py:3446 - Server started...
1714841504
Hero Member
*
Offline Offline

Posts: 1714841504

View Profile Personal Message (Offline)

Ignore
1714841504
Reply with quote  #2

1714841504
Report to moderator
1714841504
Hero Member
*
Offline Offline

Posts: 1714841504

View Profile Personal Message (Offline)

Ignore
1714841504
Reply with quote  #2

1714841504
Report to moderator
1714841504
Hero Member
*
Offline Offline

Posts: 1714841504

View Profile Personal Message (Offline)

Ignore
1714841504
Reply with quote  #2

1714841504
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714841504
Hero Member
*
Offline Offline

Posts: 1714841504

View Profile Personal Message (Offline)

Ignore
1714841504
Reply with quote  #2

1714841504
Report to moderator
1714841504
Hero Member
*
Offline Offline

Posts: 1714841504

View Profile Personal Message (Offline)

Ignore
1714841504
Reply with quote  #2

1714841504
Report to moderator
manjunath2334 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 28, 2018, 08:05:31 AM
 #22

I have couple of questions, please clarify my doubt on it.
1. In Bitcoin core we used to call bitcoin-cli getwalletinfo through command line, and through json rpc curl request curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/. Do we have same thing in Armory, if let me know some example of it.

2. Can we have armory.conf file just like bitcoin.conf to have json rpc username and password in .armory/ folder
goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3668
Merit: 1345

Armory Developer


View Profile
January 02, 2019, 04:46:30 PM
 #23

I have couple of questions, please clarify my doubt on it.
1. In Bitcoin core we used to call bitcoin-cli getwalletinfo through command line, and through json rpc curl request curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/. Do we have same thing in Armory, if let me know some example of it.

With armoryd, all calls assume the context that a current wallet is selected. To get data from other wallets, you need to select the relevant one. The first wallet armoryd loads is set as the default one.

There's a somewhat large armoryd example you can find here:

https://github.com/goatpig/BitcoinArmory/blob/master/webshop/server.py

Unfortunately I don't know how much of it still works, as it was written in 2014.

Quote
2. Can we have armory.conf file just like bitcoin.conf to have json rpc username and password in .armory/ folder

It would be armoryd.conf

Pages: « 1 [2]  All
  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!