Beispiel #1
0
def getWallets(jsonfile):
  ret = {}
  text = util.readurl(jsonfile)
  w = json.loads(text)
  for cointype in w:
    ret[cointype] = Wallet(cointype, w[cointype])
  return ret
Beispiel #2
0
 def balance(self):
   url = self.balanceurl+self.address
   return float(util.readurl(url))