<?phprequire_once 'jsonRPCClient.php'; $bitcoin = new jsonRPCClient('http://user:pass@127.0.0.1:8332/'); $balance = $bitcoin->getbalance(); echo $balance . '</br>'; $send = $bitcoin->sendtoaddress("1FmxuVaSpyGk732TbKroFE4ouSebpiz3nb 0.01"); echo $send . '</br>'; $balance = $bitcoin->getbalance(); echo $balance . '</br>';
$send = $bitcoin->sendtoaddress("1FmxuVaSpyGk732TbKroFE4ouSebpiz3nb", 0.01);
$send = $bitcoin->sendtoaddress(array("1FmxuVaSpyGk732TbKroFE4ouSebpiz3nb", 0.01));