Advertisement
bigoppaiTT

Untitled

Apr 4th, 2020
1,718
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. from coinbase.wallet.client import Client
  2. from coinbase.wallet.error import *
  3. import argparse,json,os
  4.  
  5. kunci = 'JHorpBm1UA1lX2gG'
  6. rahasia = '5CDa11XyKJ4xigkZaniqo7LGrOtJwGPb'
  7. if os.name == 'nt':os.system('cls')
  8. else:os.system('clear')
  9. try:
  10.     acc = Client(kunci,rahasia)
  11.     a = acc.get_accounts()
  12.     b = json.loads(str(a))["data"]
  13.     for bal in b:
  14.         amo = bal["balance"]["amount"]
  15.         naco = bal["balance"]["currency"]
  16.         print(f"saldo {naco} : {amo} {naco}")
  17. except Exception as e:
  18.     print('[Error] :',str(e))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement