$contractaddress, "binancecoinaddress" => $binancecoinaddress, "url": $url) ); curl_setopt( $ch, CURLOPT_POSTFIELDS, $payload ); curl_setopt( $ch, CURLOPT_HTTPHEADER, array("Content-Type:application/json", "Authorization: " . $apikey)); # Return response instead of printing. curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); # Send request. $result = curl_exec($ch); curl_close($ch); # Decode the received JSON string $resultdecoded = json_decode($result, true); # Print status of request (should be true if it worked) echo $resultdecoded["ok"]; ?>