-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP ERROR 404 #2
Comments
same issue, any help? |
def balance(address):
APIGet = requests.get(
- "http://webbtc.com/address/" + str(address) + ".json")
+ "https://insight.bitpay.com/api/addr/" + str(address))
if (APIGet.status_code == 429):
pau.pau += 1
if (pau.pau >= 10):
print("\nUnable to connect to API\nRetrying in 10 seconds\n")
time.sleep(30)
pau.pau = 0
return -1
if (APIGet.status_code != 200 and APIGet.status_code != 404
and APIGet.status != 429):
print("\nHTTP Error Code: " + str(APIGet.status_code) +
"\nRetrying in 10 seconds\n")
time.sleep(10)
return -1
data = APIGet.json()
- balance = int(data["balance"])
+ balance = int(data["balanceSat"])
pau.pau = 0
return balance |
insight from bitpay is deal , i see now use test.bitpay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://webbtc.com/address/
What should I do?
The text was updated successfully, but these errors were encountered: