Today I tried to automate some task within Armory and learnt a bit about scripting.
However, none of what I tried (e.g. extras/BDMbasics_listUTXOs.py) worked.
Specifically, no matter what I did (ran scripts stand-alone, started ArmoryDB or Armory),
self.cppWallet was always
None, so most of the functions didn't work.
Traceback (most recent call last):
File "extras/BDMbasics_listUTXOs.py", line 50, in
wlt.registerWallet(isNew=False)
File "/home/faxik/workspace/BitcoinArmory/armoryengine/PyBtcWallet.py", line 285, in registerWallet
raise Exception('invalid cppWallet object')
Exception: invalid cppWallet object
I did all the tests (which were never updated in the last 3 years) on the current
master branch. Is the scripting broken? Or the examples are outdated? Or maybe I'm missing something?
P.s. I'll hope to find time to play with older (0.93 maybe) version of Armory which would require rebuilding the database.
Please, advise! Thanks!