I am not very familiar with php but I just want to know how this works. I am trying to use the blockchain API to send some money for testing purposes but the transaction isn't taking place. My current code is this :-
<? $guid="xxxxxxxx"; $main_password="xxxxxxxx"; $amount = "50000"; $to = "xxxxxxxx"; $json_url = "https://blockchain.info/merchant/$guid/payment?password=$main_password&second_password=$second_password&to=$address&amount=$amount&from=$from&shared=$shared&fee=$fee¬e=$note"; $json_data = file_get_contents($json_url); $json_feed = json_decode($json_data); $message = $json_feed->message; $tx_hash = $json_feed->tx_hash; ?>
Please tell me what is the error in my code and also how to print out the response on the screen.