POST https://api.momint.so/templates

Create an NFT Template which you can use to mint NFTs.

REQUEST


curl -X 'POST' \\
  '<https://api.momint.so/templates>' \\
  -H 'accept: application/json' \\
  -H 'api-key: api_key' \\
  -H 'Content-Type: application/json' \\
  -d '{
  "metadata": {
    "name": "Test NFT",
    "description": "Test NFT",
    "attributes": [
      {
        "trait_type": "color",
        "display_name": "color",
        "value": "red"
      },
      {
        "trait_type": "weight",
        "display_name": "weight",
        "value": "35 kilos"
      }
    ],
    "image": "fl_61f26a1f73d309c61f66d854",
    "animation_url": "https://animation_link.com"
  },
  "listOnMomintMarketplace": true,
  "maxEditions": 10,
  "blockchain": "XDAI",
  "burnable": true,
  "royalty": {
		amount: 10,
		split: [
	    {
	      "account": "[email protected]",
	      "type": "EMAIL",
	      "ratio": 100
	    }
	  ],
	}
  "priceSettings": {
    "type": "FLAT_RATE",
    "price": 1
  },
  "rights": "PERSONAL",
  "unlockableContent": {
    "firstEditionLink": "http://firstEdition_link.com",
    "otherEditionLink": "http://otherEdition_link.com"
  }
}'

See Template configurations for advanced NFT Template configurations.

RESPONSE


{
  "templateId": "nt_61f26fe173d309c61f66d856",
  "metadata": {
    "name": "Test NFT",
    "description": "Test NFT",
    "attributes": [
      {
        "trait_type": "color",
        "display_name": "color",
        "value": "red"
      },
      {
        "trait_type": "weight",
        "display_name": "weight",
        "value": "35 kilos"
      }
    ],
    "image": "<https://ipfs.io/ipfs/QmdJL3TzLFfQDdN3xNgKzExiSHD4u3WR4HWN5BauLmWu8a>",
    "animation_url": "https://animation_link.com"
  },
  "files": [
    {
      "metadata_field": "image",
      "file": {
        "id": "fl_61f26a1f73d309c61f66d854",
        "hash": "QmdJL3TzLFfQDdN3xNgKzExiSHD4u3WR4HWN5BauLmWu8a",
        "fileService": "IPFS",
        "fileType": "mp4",
        "links": {
          "original": "<https://momint.blob.core.windows.net/nfts/11981ea8-5d70-4c9e-99b7-97cbe4f9cc27.mp4>"
        }
      }
    }
  ],
  "listOnMomintMarketplace": true,
  "maxEditions": 10,
  "editionsMinted": 0,
  "contract": {
    "blockchain": "XDAI",
    "contractAddress": "0xeF32e7a27e86F3082Fc29c4149c4E90D78063072"
  },
  "burnable": true,
  "rights": "PERSONAL",
  "priceSettings": {
    "type": "FLAT_RATE",
    "price": 1
  },
  "unlockableContent": {
    "firstEditionLink": "http://firstEdition_link.com",
    "otherEditionLink": "http://otherEdition_link.com"
  },
  "royaltySplit": [
    {
      "account": "[email protected]",
      "type": "EMAIL",
      "ratio": 100
    }
  ]
}

Template Configuration

Metadata

animation_url URL to a multi-media attachment for the NFT. optional
image URL to the image of the item. Attach the file id returned from the https://momint.notion.site/API-Endpoint-List-5500569953b34cba82bc67f71e89314b optional
attributes You can define a set of attributes that will be inherited by NFTs minted from the NFT Template. optional
name Add a name of the NFT. required
description Add a description of the NFT. optional

Properties

listOnMomintMarketplace Determine whether NFTs created from the NFT Template are listed on Momint Marketplace. required
maxEditions Maximum supply of NFTs created from the NFT Template. required
blockchain Determines the Blockchain you want to mint your NFTs on using the Momint smart contracts. We currently only support minting on https://www.xdaichain.com/ chain. required
burnable Determines whether NFTs creates from the NFT Template are burnable required
royaltySplit By listing your NFTs on Momint Marketplace you earn 10% royalties every time an edition is sold, forever. The creator gets 100% of the royalties if royaltySplit is not included. optional
rights You can select the usage rights for your NFTs. Allowed values are https://momint.notion.site/API-Endpoint-List-5500569953b34cba82bc67f71e89314b, https://momint.notion.site/API-Endpoint-List-5500569953b34cba82bc67f71e89314band https://momint.notion.site/API-Endpoint-List-5500569953b34cba82bc67f71e89314b. See https://momint.notion.site/API-Endpoint-List-5500569953b34cba82bc67f71e89314bfor detailed explanation. required
unlockableContent You can add links to any additional content which can be unlocked by owner. optional
priceSettings You can set the https://momint.notion.site/API-Endpoint-List-5500569953b34cba82bc67f71e89314bfor your NFTs to https://momint.notion.site/API-Endpoint-List-5500569953b34cba82bc67f71e89314bor https://momint.notion.site/API-Endpoint-List-5500569953b34cba82bc67f71e89314b required

Rights

Personal