0PricingLogin
Web3 & DApp Development Fundamentals · Lesson

Minting NFTs

Unique token IDs.

Creating Unique Tokens

Minting an NFT creates a brand new token with a unique tokenId and assigns it an owner. Unlike ERC-20 minting (which adds to a balance), each NFT mint produces a distinct, identifiable asset.

Ownership Mapping

The core NFT state is a mapping from tokenId to owner address, plus a balance count per owner.

<code>mapping(uint256 => address) private _owners;
mapping(address => uint256) private _balances;</code>

All lessons in this course

  1. The ERC-721 Standard
  2. Minting NFTs
  3. Token Metadata
  4. Marketplaces
← Back to Web3 & DApp Development Fundamentals