Skip to content

Latest commit

 

History

History
 
 

ref_impl

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Minimal implementation of CIP-0068

Concept

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.

Api

  • mintNFT(assetName : string, metadata: Metadata)
  • burnNFT(assetName : string)
  • viewNFT(assetName : string)

Run

deno run -A offchain.ts