I'm trying to use armoryengine to find the balance of some addresses. I tried following the example from import500kaddresses, but get an error.
from armoryengine import *
wlt = Cpp.BtcWallet()
wlt.addAddress_1_( hex_to_binary('9c633b56899c633b56899c633b56899c633b5689') ) # hash160
TheBDM.registerWallet(wlt)
start = RightNow()
TheBDM.setBlocking(True)
TheBDM.setOnlineMode(True)
print 'Loading blockchain took %d seconds' % int(RightNow()-start)
wlt.setBlockchainSyncFlag(BLOCKCHAIN_READONLY)
wlt.syncWithBlockchain()
print 'Full sync at %d seconds' % int(RightNow()-start)
print 'Wallet balance is: %s' % coin2str(wlt.getBalance('Spendable'))
Loading blockchain took 916 seconds
Traceback (most recent call last):
File "/home/user/BitcoinArmory/balance.py", line 16, in <module>
wlt.setBlockchainSyncFlag(BLOCKCHAIN_READONLY)
File "/home/user/BitcoinArmory/CppBlockUtils.py", line 1087, in <lambda>
__getattr__ = lambda self, name: _swig_getattr(self, BtcWallet, name)
File "/home/user/BitcoinArmory/CppBlockUtils.py", line 51, in _swig_getattr
raise AttributeError(name)
AttributeError: setBlockchainSyncFlag
Any ideas? It looks like the permissions are fine and I deleted all the lock files I could find.