The minting policy is a one-shot policy. Only single NFT (pair of reference NFT
and user token
) can be minted. When deciding to burn the NFT the whole pair must be burned, otherwise the validator will throw an error.
PlutusTx was used to create the on-chain code and Lucid for the off-chain part. It can be run in Deno and with a few modifications also in Node.js and Browser.
- mintNFT(assetName : string, metadata: Metadata)
- burnNFT(assetName : string)
- viewNFT(assetName : string)
deno run -A offchain.ts