I want to convert this function from php to JQuery. I tried a few things but I am not able to get it right
<?php
function getBalance($adress) {
return file_get_contents('https://blockchain.info/de/q/addressbalance/'. $adress);
}
$addy1_balance = getBalance('19F16Tg47PUsie2vNzkjJn5xsgjAPU3z2f') / 100000000;
$addy2_balance = getBalance('17jJBRxVdNX4uP2gjs5t9LEMJ56zAXK7iC') / 100000000;
$addy3_balance = getBalance('13FBnfCFvJmketncTwr2csXJrzwU4wPLqe') / 100000000;
$addy4_balance = getBalance('17tGnUhPNTF1L2NpfmmKWLFQS5teRGJSaf') / 100000000;
?>
echo $addy1_balance;
echo $addy2_balance;
echo $addy3_balance;
echo $addy4_balance;