Search
  • Neeraj

NFTs & Smart Contracts: The minting mix

This's the third instalment, the first and second parts're here and here.


How does minting work?


Right, let's go through the steps in summary:

  1. A smart contract is created using ERC721 or ERC1155 standard and deployed onto a blockchain. (on-chain)

  2. The smart contract is executed, which creates a record on the blockchain with a unique address​. Your NFT has now been minted. (on-chain)

  3. The record includes owner (wallet address) for the NFT and the address to a metadata file​

  4. Once a NFT record is created, it cannot be changed.

  5. The metadata file is usually a JSON, hosted off chain – like on HTTPS URL or a IPFS URI​. (off-chain)

  6. The metadata JSON file includes a name, description and a URI (address) to the asset.

  7. Storage on IPFS makes the metadata file immutable – usually done to ensure rarity.

  8. The metadata file refers to the underlying asset, which is a file hosted on a HTTPS URL, IPFS URI or a local drive. (off-chain)

  9. The metadata file also allows custom attributes, which could define the characteristics of an image – eyes, mouth, background etc.​

And that's your NFT minted. But remember:



(Source: https://makeameme.org/meme/one-does-not-b2418a7fc8)


Too short? Fine, here's some bonus content:

  • Lazy Minting:

  • A clear problem for many NFT creators was the upfront fee that they'd to pay to register their NFTs on a blockchain. Imagine paying 1000s of dollars to register your NFTs, only to find no one wants to buy them!

  • The solution came via the web 3.0 version of Just In Time manufacturing. You don't need to mint the NFTs, you can just keep everything ready for minting and mint it once there's a buyer. What's more, you can get the buyer to pay the gas fees!

  • This's a feature that's offered by trading platforms like OpenSea. Since the NFT's not on the blockchain before being sold, you can even edit details like the metadata.

  • Burning a NFT:

  • What do you do when you want to put a NFT out of circulation? You burn it! Sounds a bit extreme I know, but relax - it's a misnomer.

  • Burning a NFT isn't really about destroying the record - the blockchain's supposed to be immutable (unchangeable), remember?

  • Instead, you just send the NFT to an inaccessible address - called a "eater" address or a "null" address. Technically it's just a transfer, so it costs you the gas fees you'd expect for a transfer or ownership.

  • The burn process is irreversible though. There's no owner of the null address who can transfer the NFT back to you, so once burnt the NFT is gone forever.

And that's all I can tell you for now. Next time someone points at an image and screams "NFT!", just...


(Source: https://www.keepcalmandposters.com/poster/4033213_keep_calm_and_dont_get_confused)

12 views0 comments

Recent Posts

See All