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 , or follow our step-by-step guide, .
You need your Client ID and Client Secret which can be obtained from the Portal as shown below.
You need a contract with a contractAddress and token-type with tokenTypeId. Learn how to and .
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.
HTTP
POST /api/v2/tokens/mints
Parameter
Param Type
Description
Type
Required
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
Under the mints array, you can find individual id for each minted NFT listed with the wallet address. This unique id can be used to track the status of the mint request.
The status attribute indicates the on-chain token mint status.