Batch Mint NFTs

Scenario Explained
In this guide, we will be working with the NFT-WIZARD, and cover a more advanced use case, where you want to distribute a certain type of NFT immediately to several different wallet addresses and perhaps even a different amount for each address.
End Result
Minting different amounts of an NFT to multiple wallet addresses in one call.
Prerequisites
You need an account on the quantum Developer Portal, if you don't have one, register in our Developer Portal, or follow our step-by-step guide, Getting Started with Quantum.
You need your Client ID and Client Secret which can be obtained from the Portal as shown below.
You need a contract with a
contractAddressand token-type withtokenTypeId. Learn how to create a contract and token-type.
Batch Minting NFTs
We will use the following endpoint along with the contractAddress, secretType, and tokenTypeId in the request body. We have specified three different wallet addresses in the request body.
Similarly, you can add up to 100 different wallet addresses by following the syntax in the request body. While specifying the wallet address, you can also specify the number of NFTs you wish to mint per wallet address.
In this example, we have specified one NFT for the first address, two NFTs for the second address, and three NFTs for the third address.
Request Endpoint: reference
HTTP
contractAddress
Body
The contract address
String
✅
secretType
Body
The blockchain of the contract
String
✅
tokenTypeId
Body
This is the ID of the token-type. You can get it from the response body when you create a token-type.
String
✅
destinations
Body
The array which includes all the wallet addresses and the number of NFTs to mint per wallet address
Array of objects
✅
destinations.address
Body
The wallet address to mint and send the NFT
String
✅
destinations.amount
Body
The number of NFTs you want to mint and send
Integer
✅
Request Body:
JSON
Response Body:
📘
Under the
mintsarray, you can find individualidfor each minted NFT listed with the wallet address. This uniqueidcan be used to track the status of the mint request.The
statusattribute indicates the on-chain token mint status.
JSON
View your NFT on testnet
📘Learn how to view your NFT on sandbox/testnet.
Last updated