Answer the question
In order to leave comments, you need to log in
How to work with api through a proxy?
I will describe very simply
Here is the code that receives the data directly
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
Answer the question
In order to leave comments, you need to log in
requests.get(
f'https://api.smartbit.com.au/v1/blockchain/address/{addr}',proxies=dict)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question