icarussiano

Untitled

Mar 21st, 2024 (edited)
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. import requests
  2.  
  3.  
  4. def get_address_info(address, blockchain):
  5. url = f"https://api.blockchair.com/{blockchain}/dashboards/address/{address}"
  6. response = requests.get(url)
  7. if response.status_code == 200:
  8. data = response.json()
  9. return data
  10. else:
  11. print("Errore nella richiesta API")
  12. return None
  13.  
  14.  
  15.  
  16. # Indirizzi da analizzare
  17. address = '1FUDDUoVQLLb2MfgR9qKX3wfiz9xrCEbzk'
  18. blockchain = 'bitcoin'
  19.  
  20. get_address_info(address, blockchain)
Add Comment
Please, Sign In to add comment