Advanced NFT Mechanics Flashcards
7 cards from real NFT practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Advanced NFT Mechanics flashcards as text
In ERC-721, which function is used to safely transfer a token while checking that the recipient contract can handle ERC-721 tokens?
Answer: safeTransferFrom
safeTransferFrom verifies the recipient implements onERC721Received before completing the transfer.
What does the ERC-2981 standard add to NFT contracts?
Answer: Royalty payment information
ERC-2981 provides a standardized way to signal royalty amount and recipient for secondary sales.
Which interface must a contract implement to be recognized for capability detection like ERC-721 support?
Answer: ERC-165
ERC-165 defines supportsInterface, allowing contracts to advertise which interfaces they implement.
In ERC-1155, why is balanceOfBatch more gas-efficient than multiple balanceOf calls?
Answer: It queries multiple token IDs in one call
balanceOfBatch returns balances for many id/owner pairs in a single function call, reducing overhead.
What is a common purpose of a tokenURI returning an IPFS hash rather than an HTTP URL?
Answer: Content-addressed immutability
IPFS hashes are content-addressed, so the metadata cannot change without changing the hash.
Which event must ERC-721 emit when ownership of a token changes?
Answer: Transfer
The Transfer event logs from, to, and tokenId whenever a token moves between addresses.
What is the main advantage of lazy minting?
Answer: Minting gas is deferred until first purchase
Lazy minting defers the on-chain mint (and its gas) until a buyer actually purchases the NFT.