How to make the address not only shows the BTC balance, and, instead of that, make it shows the satoshi balance?

How to make the address not only shows the BTC balance, and, instead of that, make it shows the satoshi balance?

Im working with this script:

<?php
if($_POST["address"]){
    $address=$_POST["addressTXT"];
    function getBalance($address) {
        return file_get_contents('https://blockchain.info/q/addressbalance/'. $address);
    }
    echo getBalance($address).' BTC';
}else{
    echo <<<EOF
    <form action="index.php"method="POST">
        <input type="text" name="addressTXT"size="100">
        <input type="submit" name="address">
    </form>
EOF;
}
?>

It supossed to show the entire balance, including satoshis, but not. Any solution? Thanks anyway!



from Recent Questions - Bitcoin Stack Exchange https://ift.tt/Lrk04nP
via IFTTT

Popular posts from this blog

Future of Bitcoin encryption and security in a QC era

Possible rollback due to lazy reveal in BRC20?

A way to recover scammed Bitcoin investment