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