Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from coinbase.wallet.client import Client
- from coinbase.wallet.error import *
- import argparse,json,os
- kunci = 'JHorpBm1UA1lX2gG'
- rahasia = '5CDa11XyKJ4xigkZaniqo7LGrOtJwGPb'
- if os.name == 'nt':os.system('cls')
- else:os.system('clear')
- try:
- acc = Client(kunci,rahasia)
- a = acc.get_accounts()
- b = json.loads(str(a))["data"]
- for bal in b:
- amo = bal["balance"]["amount"]
- naco = bal["balance"]["currency"]
- print(f"saldo {naco} : {amo} {naco}")
- except Exception as e:
- print('[Error] :',str(e))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement