Bitcoin Forum
May 26, 2024, 11:16:53 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: help with blockchain api  (Read 416 times)
CanadianGuy (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100



View Profile
January 19, 2014, 10:51:17 PM
Last edit: January 19, 2014, 11:03:50 PM by grue
 #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
bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
January 26, 2014, 10:25:40 AM
 #2

You might be missing zeros

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!