Bitcoin Forum
November 16, 2024, 09:31:35 PM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Send to Multiple addresses using Blockchain.info  (Read 673 times)
BitCoinDream (OP)
Legendary
*
Offline Offline

Activity: 2394
Merit: 1216

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!