Bitcoin Forum

Economy => Service Discussion => Topic started by: bitcoinbetas on February 07, 2013, 03:54:59 AM



Title: Ummm...
Post by: bitcoinbetas on February 07, 2013, 03:54:59 AM
where can I find a way for a website to display bitcions sent to an payment address in digits 1 BTC ?


Title: Re: Ummm...
Post by: misterbigg on February 07, 2013, 03:56:37 AM
Nice thread title. Signal, meet noise.


Title: Re: Ummm...
Post by: bitcoinbetas on February 07, 2013, 04:00:10 AM
Nice thread title. Signal, meet noise.

I try.


Title: Re: Ummm...
Post by: franky1 on February 07, 2013, 07:46:49 PM
doesnt sound like english is your native language but i think you are asking
"how can i find out how much bitcoin is received on a specific address, from a website/service"

the answer
blockchain.info

use this API
http://blockchain.info/q/getreceivedbyaddress/<the address goes here>

it displays the results in satoshi's so you have to divide the number by 100,000,000

if your using PHP
Code:
<?
$url = 'http://blockchain.info/q/getreceivedbyaddress/1BtCAddressYOUChooseHERE";

$contents = file_get_contents($url);
$Satoshi=100000000;

$contents /= $Satoshi;
echo "BTC received: ";
echo $contents;
?>