array ( array('address' => "1apiKcJM95jENZeom2dQo8ShK7dUQkRaS", 'amount' => "52.57%"), array('address' => "1ApiwpetcWnBbkpU7cb7biPfc6Tiucasf8", 'amount' => "47.43%") ) ); $api_base = file_get_contents("https://apirone.com/api/v2/btc/wallet/" . $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["txid"]; ?>