v1

latestOpenAPI 3.0.12026-07-2699111970.1 KB
NFT Templates

Create Template

Create a token template, that NFTs or SFTs may be minted from

API scope required: nfts.create

post/2022-06-09/collections/{collectionId}/templates

Path parameters

collectionIdstring required
Example:idempotent-collection-name

The ID of the named collection, used to create new tokens

Request body

reuploadLinkedFilesboolean

Any URLs in the metadata object will be resolved and reuploaded to IPFS [Default: true]

Example request

{
  "onChain": {
    "tokenId": "1"
  },
  "supply": {
    "limit": 10
  }
}

Response

Success

templateIdstring uuid

Example response

{
  "templateId": "20ed0963-0185-49af-b4a0-2de3169bb367",
  "metadata": {
    "name": "My Token",
    "image": "ipfs://QmaToZn4VEjF7q4CAudPaNka6AD484xuuEZSXmTLJPDLVE",
    "description": "Sample Token Template",
    "symbol": "A shorthand identifier for the token (Solana only)"
  },
  "onChain": {
    "tokenId": 1
  },
  "supply": {
    "limit": 1
  }
}