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
- The ERC-721 Standard
- Minting NFTs
- Token Metadata
- Marketplaces