I am making a PHP script which uses Blockchain's Node.js API. However, when I try to programmatically send
BTC0.0005 to my Bitcoin Core wallet locally installed on my Mac Mini, I get the following error in my Blockchain console:
1487445233151 - error: Insufficient funds. Value Needed 0.0004BTC. Available amount 0BTC
I followed the instructions listed on the
Blockchain API but I still get this error. I googled the problem involving 0 BTC in the Blockchain wallet, but I have more than enough what I'm sending. Here's the rhe relevant code:
$guid="(removed)";
$password="(removed)";
$amount = "30000";
$to = '1CSjpwvXPzRMG3ksVq7PFA2tz7PumnNNbS';
$json_url = "http://localhost:3000/merchant/$guid/payment?password=$password&to=$to&amount=$amount&from=1qmAhtjgYKv12RMRM18t5HAPMrxM24f8t";
$json_data = file_get_contents($json_url);
$json_feed = json_decode($json_data);
return var_dump($json_feed);
Thanks in advance for the help!