铸造NFT
Mint NFT to MCS Opensea Collection
mintAsset(sourceFileUploadId, nftObject)
The following code example mints an uploaded file as a NFT viewable on Opensea. Create an NFT object and provide the payload_cid of the file. The NFT object follows the Opensea metadata standards.
The NFT smart contract can be found in the GitHub repository below:
Parameters
sourceFileUploadId: upload Id of the file
nftObject: object following Opensea Metadata Standards
name: name of your NFT (required)
image: IPFS URL of your file (required)
description: description of your NFT
external_url: viewable link on Opensea UI
attributes: array of attribute objects you wish to show on Opensea
Return
Returns the response from the /mint/info
API
Last updated