Create Token-type (NFT template)
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. Using this token-type you can mint multiple NFTs.
Request Endpoint: reference
HTTP
POST /api/v2/token-types/creationsRequest Body:
secretType
The blockchain of the contract
String
β
contractAddress
The contract address under which you want to create the token-type
String
β
creations
An array of objects that can define one or multiple token-type details
Array of objects
β
creations.name
The name of the token-type
String
β
creations.description
The description of the token-type
String
β
creations.image
The image URL for the token-type that will be displayed
String
β
JSON
{
"secretType": "MATIC",
"contractAddress": "0xf5b11b4f458cc12a7989a146c5db2e7d500e2241",
"creations": [
{
"name": "My first NFT Token-type",
"description": "Quantum",
"image": "https://static.wikia.nocookie.net/parody/images/4/42/74915084_10162764640400387_6139958579186106368_o.jpg"
}
]
}Response Body:
π
Save the
result.creations.idfrom the response body. This is the token-type Creation ID and it's used to track the status of the token-type creation request.The
statusattribute indicates the token-type creation status.
JSON
Last updated