Create NFT template (token-type)

This page explains how to create an NFT template (token-type).

This endpoint allows you to create an NFT template which you can use to mint NFTs from. A more technical representation of the template is the token type.

This means you just have to define the NFT template once with parameters like its name, image, and description.

Request Endpoint: reference

 POST /api/minter/contracts/{contractId}/token-types

Request Body:

ParameterDescriptionTypeRequired
nameThe name of the token-typeStringโœ…
descriptionThe description of the token-typeStringโœ…
imageThe image URL for the token-type that will be displayedStringโœ…
{
    "name": "My first NFT",
    "description": "Venly",
    "image": "https://storage-qa.venly.io/applications/1f64ded9-2a05-4824-b682-661023359357/StickFigureHi.png"
}

Response Body:

๐Ÿ“˜

Save the id from the response body. This is the token type ID.

{
  "id": 1,
  "confirmed": false,
  "name": "My first NFT",
  "description": "Venly",
  "fungible": false,
  "burnable": false,
  "image": "https://storage-qa.venly.io/applications/1f64ded9-2a05-4824-b682-661023359357/StickFigureHi.png",
  "imageThumbnail": "https://storage-qa.venly.io/applications/1f64ded9-2a05-4824-b682-661023359357/StickFigureHi.png",
  "imagePreview": "https://storage-qa.venly.io/applications/1f64ded9-2a05-4824-b682-661023359357/StickFigureHi.png",
  "currentSupply": 0,
  "animationUrls": [],
  "attributes": [],
  "transactionHash": "0x60bc12e2a99bb18b05b62099f395b41f25f33136a04ff4cb811a92ebce59c366",
  "storage": {
    "type": "cloud",
    "location": "https://metadata-staging.arkane.network/metadata/contracts/53492/tokens/{id}"
  }
}

Whatโ€™s Next

Venly offers more complex NFT configurations, such as setting a max supply, adding mint numbers, and IPFS storage.
For a full overview please check out NFT Configuration.