<?php
$WalletID = "tbtc-bde1cfc70297e4ff7068334b25986819";
$json_data = '{"transfer_key": "hyl1aQkd5vwdzT1uExgUCOXOcekUg4Yc"}' .
array (
'destinations' => array (
array('address' => "2N4obeEuEidHmuXLCLvWeA4tH9FhB8W8EyD", 'amount' => "100000"),
array('address' => "2N1SRgR6Tj4LTxsMiTfM95yHSrBSQTkfvco", 'amount' => "750000")
)
);
$api_base = file_get_contents("https://apirone.com/api/v2/wallets/" . $WalletID . "/transfer");
$curl = curl_init($api_base);
curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-Type: application/json"));
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($json_data));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$http_status_code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
$response = curl_exec($curl);
curl_close($curl);
$decoded = json_decode($response, true);
echo "Transaction hash: " . $decoded["txs"]["0"];
?>