Publishing NFTs

From CloudCoin Wiki
Revision as of 05:30, 11 October 2022 by Seanw (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

There are many ways you can create NFTs with CloudCoins. You can simply embed CloudCoins into images. However, if you want to add value to your NFTs and make them official, you can publish your NFTs to your web server and put a record of them in your DNS server on the Domain that you control. Since only you can control your domain, it shows that you are the one who created the NFTs and that they are real.

After you publish your NFTs, other people can use the Coin Manager to look up the pictures on your web server and verify that they are the same.

CloudCoin Support is happy to help you with this process. To publish automatically, you will need to put the webpage "update.php"

  1. Upload.php

You will need to put this php file on your webserver. This file will allow the Coin Manager desktop application to upload the images of NFTs to your web server so they can be available to confirm authenticity.

  1. DNS Record Insertion

We have the ability to configure Coin Manager to access 32 types of DNS servers. However, we only support CloudFlare at this time. We can add more if you make a request. If you use CloudFlare to manage your domain, insert your API Key for adding 'A' records to your DNS zone.


// Change The Secret Key to the one used in the Go Program
define('UPLOAD_SECRET_KEY', '0030000034343Your Code here');

// By default the files will be uploaded to the same folder where the script runs. Change it if necessary
define('NFT_FOLDER', dirname(__FILE__));

// Do not change the lines below
if (!isset($_POST['secret_key'])) {
  echo "No Secret Key Sent";

if ($_POST['secret_key'] != UPLOAD_SECRET_KEY) {
  echo "Incorrect secret key";

if (isset($_FILES['nft'])) {
  if (!saveFile($_FILES['nft']))

if (isset($_FILES['description'])) {
  if (!saveFile($_FILES['description']))

if (isset($_FILES['unique'])) {
  if (!saveFile($_FILES['unique'])) 

function saveFile($item) {
  if ($item['error'] != ERR_UPLOAD_OK) {
    echo "Failed to upload " . $item['name'] . ". Error {$item['error']}";
    return false;

  $uploadFile = NFT_FOLDER . "/" . basename($item['name']);
  if (!move_uploaded_file($item['tmp_name'], $uploadFile)) {
    echo "Failed to move uploaded file {$item['name']}";
    return false;

  return true;


echo "OK";