BookNon-Fungible Tokens (NFTs)

Section III: The Technical Foundation

4 min read

ERC-721: The Rulebook

The vast majority of NFTs on Ethereum follow the ERC-721 standard, which defines how unique tokens work at the smart contract level. While ERC-20 (introduced in Chapter II) created a standard for fungible tokens where every unit is identical, ERC-721 does the same for non-fungible tokens where each is unique. At its core, it's surprisingly simple: just a few essential functions that every NFT contract must implement:

  • ownerOf(tokenId): "Who owns NFT #1234?"
  • transferFrom(from, to, tokenId): "Move NFT #1234 from Alice to Bob"
  • approve(to, tokenId): "Alice gives Bob permission to transfer her NFT #1234"
  • setApprovalForAll(operator, approved): "Alice gives the marketplace permission to transfer any of her NFTs"

The standard also includes optional extensions for metadata (linking to those JSON files containing name, description, and image) and enumeration (letting applications discover all tokens in a collection).

ERC-1155: The Multi-Token Standard

While ERC-721 handles unique tokens, ERC-1155 takes a more flexible approach. It allows a single smart contract to manage both fungible and non-fungible tokens simultaneously, making it particularly powerful for gaming ecosystems that need both unique items (legendary weapons with individual histories) and fungible resources (gold coins that are interchangeable).

ERC-1155 introduces batch operations: instead of making separate transactions for each token transfer, dozens of tokens can be moved in a single transaction, dramatically reducing gas costs. This efficiency made it the standard of choice for blockchain games and applications that need to handle large numbers of diverse assets.

Security and Common Scams

These powerful token standards enable sophisticated functionality, but they also create security vulnerabilities. The approval functions (particularly setApprovalForAll) grant sweeping permissions that scammers actively exploit. Because blockchain transactions are irreversible, users must navigate constant threats:

  • Phishing Attacks: Scammers create convincing replicas of official websites or send deceptive links in Discord and X (formerly Twitter), tricking users into connecting their wallets to a malicious site for a "free mint" or "airdrop."
  • Wallet Drainers: More advanced scams involve tricking users into signing what appears to be a legitimate transaction (like a signature request) but is actually a malicious payload that grants the attacker permission to drain all valuable assets, NFTs and tokens alike, from the victim's wallet.

These risks underscore a core principle of self-custody: vigilance is paramount. Best practices, such as using a hardware wallet for storing high-value assets and using a separate "burner" wallet for minting from new projects, have become essential for navigating the space safely.

Launch Strategies

When projects launch NFTs, they face the same fundamental challenge as any scarce resource: how to distribute fairly while preventing bots and bad actors from dominating the sale.

Launch patterns have evolved in response. Fair launches offer everyone the same price on a first-come-first-served basis, though these are often dominated by automated bots. Dutch auctions start at a high price that drops over time until demand meets supply, making them more resistant to bot manipulation. Allowlists grant pre-approved wallets early access, rewarding community building and engagement before the public sale. Some projects also use bonding curves, as described earlier, where the price increases with each mint.

Solana NFTs: A Parallel Ecosystem

Solana (whose architecture was covered in Chapter III) developed its own NFT ecosystem largely independent of Ethereum, using different standards and tooling. The Metaplex framework became the foundation for most Solana NFTs, handling metadata, collections, and royalty configurations. Newer standards added more sophisticated controls over how NFTs can be transferred and used.

The marketplace landscape evolved differently as well. Magic Eden dominated early volumes with a user-friendly experience and launch tools, while Tensor attracted professional traders with advanced features like trait-based bidding and automated pricing pools. Unlike Ethereum where OpenSea long dominated, Solana's NFT liquidity remained concentrated in native marketplaces.

A major innovation unique to Solana is compressed NFTs (state compression was introduced in Chapter III), which allow millions of NFTs to be minted for a fraction of a cent. This works by storing only a cryptographic summary on-chain while keeping detailed data off-chain, dramatically reducing costs. This technology unlocked use cases like large-scale airdrops, loyalty programs, and gaming assets that would be prohibitively expensive on other networks.

The royalty situation mirrors Ethereum's evolution. Marketplace competition pushed creator fees toward optional, and while some NFT standards attempted to enforce royalties at the contract level, enforcement still depends on marketplace cooperation.

Combined with Solana’s fast execution and low fees, these features created high-velocity trading cultures and frequent price changes. Notable collections include Solana Monkey Business, Mad Lads, and Claynosaurz, each reflecting Solana’s lower-cost, experiment-driven culture.