Bitcoin Forum
June 25, 2024, 09:22:04 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Send to Multiple addresses using Blockchain.info  (Read 652 times)
BitCoinDream (OP)
Legendary
*
Offline Offline

Activity: 2338
Merit: 1204

The revolution will be digital


View Profile
May 11, 2014, 04:28:20 PM
 #1

Does the following code works ?

Code:
<?php

$guid
="blochain-info-wallet-id";
$firstpassword="blockchain-info-wallet-password";

$amounta "10000";
$amountb "40000";
$addressa "1A8JiWcwvpY7tAopUkSnGuEYHmzGYfZPiq";
$addressb "1ExD2je6UNxL5oSu6iPUhn9Ta7UrN8bjBy";
$recipients urlencode('{
                  "'
.$addressa.'": '.$amounta.',
                  "'
.$addressb.'": '.$amountb.'
               }'
);

$note "Payment Note"

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

$json_data file_get_contents($json_url);

$json_feed json_decode($json_data);

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

echo 
"Message: ".$message."<br /><br />Tx ID: ".$txid;

?>

I tried with both http & https, but neither is working !!!

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!