Details and Options
nftSpec is an association with the following keys:
"Name" | name of the NFT |
"Thumbnail" | thumbnail image of the NFT |
"Source" | source data of the NFT |
"Description" | description of the NFT |
"Expression" | Wolfram Language expression associated with the NFT |
"Notebook" | Wolfram Notebook associated with the NFT |
"NFTID" | whether to create an autogenerated ID for the NFT |
"NFTQuantity" | number of NFTs to mint |
The maximum string length of "Name" is 32 characters.
The maximum string length of "Description" is 64 characters.
The maximum string length of "Expression" is 64 characters.
"Thumbnail" can be a
File containing the path to an image file, or an expression such as
Image,
Graphics or
Graphics3D. Ideally, the image size should be less than 1 MB.
"Source" can be a
File containing the path to the source file associated with the NFT, or an expression such as
Image,
Graphics or
Graphics3D.
"Notebook" is a
File containing the path to a notebook associated with the NFT.
With
"NFTID"→True, an ID will be autogenerated using the current
UnixTime and a random integer. Note that this is an accessory metadata ID used for readability when sharing the NFT details. This ID does not identify the NFT on the blockchain.
"NFTQuantity" has a default value of 1. With "NFTQuantity"→n, n copies of the NFT will be minted under the same transaction.
Files associated with the NFT, such as the ones specified by "Thumbnail", "Source" and "Notebook", will be automatically uploaded to
IPFS and their content identifiers (CIDs) will be added to the NFT's on-chain metadata.
transactionSpec is an association with the following keys:
"OwnerAddress" | recipient address that will own the NFT |
"PrivateKey" | private key used to sign the minting transaction |
"Fee" | transaction fee |
"OutputAmount" | amount of cryptocurrency to include in the new transaction output |
"OwnerAddress" can be any valid address, including the address associated with "PrivateKey".
"PrivateKey" should be a
PrivateKey associated with the address with enough balance to mint the NFT.
If "Fee" is not included, it will be automatically computed.
If "OutputAmount" is not included, it will be automatically computed.
If the "OwnerAddress" is the same address associated with the "PrivateKey", "OutputAmount" will not be used.
ResourceFunction["MintNFT"] has the following options:
"Preview" | True | whether to preview a transaction instead of submitting to the blockchain |
BlockchainBase | {"Cardano","Testnet"} | blockchain to use |
The
BlockchainBase option for this function currently supports only
"Cardano" (Cardano mainnet) and
{"Cardano","Testnet"} (Cardano testnet) as values.
$BlockchainBase can also be used to set the default
BlockchainBase value.