Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 703 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 703 Bytes

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