def getBalance(addr):
try:
response = requests.get(
f'https://api.smartbit.com.au/v1/blockchain/address/{addr}')
return (
Decimal(response.json()["address"]["total"]["balance"])
)
except:
pass
requests.get(
f'https://api.smartbit.com.au/v1/blockchain/address/{addr}',proxies=dict)