NFTs
QuickMint NFT

NFT Minting 🛠️

This API allows you to quickly create and mint new non-fungible tokens (NFTs) on the PerkVenue platform using the post API method.

Authentication

All requests to our push API require authentication. You will need to include your API key in the header of each request. You can find your API key in the "API Keys" section of your PerkVenue dashboard.

Endpoint

The endpoint for the NFT Minting API is:

POST /nft/quickmint

Request Parameters

The following request parameters are required to mint a new NFT:

  • name - The name of the NFT
  • description - A description of the NFT
  • image_url - The URL of the image to be associated with the NFT
  • addressTo - Address of the recepient

Request Headers

The following request header is required to use the NFT Minting API:

  • Authorization - Your PerkVenue API key

Example Request

POST /api/nft/mint HTTP/1.1
Host: https://perkvenue.onrender.com
Content-Type: application/json
Authorization: YOUR_API_KEY_HERE
 
{
"name": "My Awesome NFT",
"description": "This is an awesome NFT",
"image_url": "https://example.com/my-nft.png",
"addressTo": "0x5991fd6Ecc5634C4de497b47Eb0Aa0065fffb214"
}
 

Response

The API will respond with a JSON object containing the following information:

  • tokenId - A unique identifier for the token.
  • contractAddress - Address of the NFT collection from which you want to mint the NFT.
  • owner - The address of the NFT owner.
  • tokenURI - URL of the metadata associated with the NFT.
  • txHash - The hash of the transaction that created the token on the blockchain.

Example Response

{
    "nftDetails": {
        "tokenId": 34,
        "contractAddress": "0x44DE3A8078870068F01F019EFe42ba7525f64E50",
        "owner": "0x5991fd6Ecc5634C4de497b47Eb0Aa0065fffb214",
        "tokenURI": "https://nftstorage.link/ipfs/bafyreiaoftx4wvwqj35sfiwpjs7qlrph5gfgjjfvqfeq7rzysmkelri5rm/metadata.json",
        "txHash": "0x1c95f42214c2597da5ffb190e67b74e6d50aed5b602470de16cbb16c6298f6fc"
    }
}

Error Responses

In case of an error, the API will respond with a JSON object containing an error message:

{
  "error": "Error message"
}

Conclusion

The PerkVenue NFT Minting API provides an easy and efficient way to mint new NFTs on the blockchain. With the API, you can create unique and valuable digital assets for your customers and users.