Generate multiple NFTs for an existing SmartContract.
Endpoint
POST /v1/nft/generate-nft/:smartContractId
Authentication
API key is required in the headers.
Path Parameters
Parameter
Type
Description
smartContractId
string
The unique identifier of the SmartContract.
Request Body
The request body should be an array of objects, each containing the following parameters:
Note that at least one of those fields userWallet or email should be present in the request.
Parameter
Type
Description
Required
userWallet
string
The address of the user's wallet to which the NFTs will be generated.
email
string
Email to which the NFTs will be sent
emailOptions
object
Extra email options
metadata
object[]
An array of NFT metadata objects containing image, name, description, and attributes.
Email Options Object:
Parameter
Type
Description
subject
string
Custom subject for the email
userName
string
Name of the receiver
NFT Metadata Object:
Parameter
Type
Description
Required
image
string
The image URL for the NFT.
name
string
The name of the NFT.
description
string
The description of the NFT.
attributes
object[]
An array of attribute objects containing key-value pairs describing the NFT.
Attribute Object:
Parameter
Type
Description
key
string
The key or name of the attribute.
value
string
The value or description of the attribute.
Example
RAW
POST /v1/nft/generate-nft/12345Headers:API_KEY: YOUR_API_KEYContent-Type: application/jsonBody:[ {"userWallet":"0x11112222333344445555666677778888","metadata": [ {"image":"<SOME_IMAGE URL>","name":"First NFT","description":"This is the first NFT","attributes": [ {"key":"Characteristic 1","value":"Characteristic Value 1" }, {"key":"Characteristic 2","value":"Characteristic Value 2" } ] } ] }, {"userWallet":"0x88887777666655554444333322221111","metadata": [ {"image":"<SOME_IMAGE URL>","name":"Second NFT","description":"This is the second NFT","attributes": [ {"key":"Characteristic 1","value":"Characteristic Value 1" }, {"key":"Characteristic 2","value":"Characteristic Value 2" } ] } ] }]