Author

Topic: help with blockchain api (Read 418 times)

legendary
Activity: 2912
Merit: 1060
January 26, 2014, 05:25:40 AM
#2
You might be missing zeros
full member
Activity: 196
Merit: 100
January 19, 2014, 05:51:17 PM
#1
working with blockchain api is like trying to feed a retarded kid spaghetti .. i HAD it working, but it was sending .0001 no matter what value i put.

$guid="fKkskKz-9f7d-47df-a167-6e4bbe09d2bb";
$firstpassword="thisisapain";
//$secondpassword="PASSWORD_HERE";
$amounta = 1000000000; //the first number is amount of BTC
$amountb = 1000000000;  //the first number is amount of BTC
$addressa = "1LGw1VwvtGoSDfuckyoublockchainWLVqY9of3pBw6";
$addressb = "1LGw1VwvtGoSfuckyoublockchainmWLVqY9of3pBw6";
$recipients = urlencode('{
                  "'.$addressa.'": '.$amounta.',
                  "'.$addressb.'": '.$amountb.'
               }');

$json_url = "http://blockchain.info/merchant/$guid/sendmany?password=$firstpassword&recipients=$recipients";

$json_data = file_get_contents($json_url);

$json_feed = json_decode($json_data);

$message = $json_feed->message;
$txid = $json_feed->tx_hash;

I would get the confirmation BEEP when i did this, but no matter WHAT VALUE i put in those amounts, it only sent .0001
the subject of this message is an understatement

Moderator action: edited title
Jump to: