How to handle orders with multiple NFTs at once
collectionId
that supports secondary sales provisioned for you by your Crossmint Customer Success Engineer. For more information on marketplace and launchpad support, check this guide.
If you need to contact the team about getting set up with reservoir-powered secondary sales support contact the team.
lineItems
for Secondary SaleslineItems
instead of a single object when creating an order.
The below examples demonstrate how to create a multiple line item order for secondary sales:
collectionId
per order. This means the most common scenario where it makes sense to create a multiple line item order for primary sales is an ERC-1155 semi-fungible contract. This type of NFT contract supports minting distinct tokens by specifying the tokenId
, whereas in ERC-721 style contract every token is unique and thus you only need to pass a quantity parameter to mint multiple. Using multiple line items for a standard ERC-721 contract would result in multiple mint transactions against the contract when only one is required.
_id
passed in the callData
of each lineItem
is unique (1 and 2).