コード例 #1
0
ファイル: wallet.py プロジェクト: jftaylor21/cryptotwitter
def getWallets(jsonfile):
  ret = {}
  text = util.readurl(jsonfile)
  w = json.loads(text)
  for cointype in w:
    ret[cointype] = Wallet(cointype, w[cointype])
  return ret
コード例 #2
0
ファイル: wallet.py プロジェクト: jftaylor21/cryptotwitter
 def balance(self):
   url = self.balanceurl+self.address
   return float(util.readurl(url))