Knowledge 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 Knowledge flashcards as text
What is the purpose of the approve() function in ERC-721?
Answer: To grant another address permission to transfer a specific token
approve authorizes a single address to transfer a particular token on the owner's behalf.
What does setApprovalForAll() do?
Answer: Grants an operator permission over all of the owner's tokens
setApprovalForAll authorizes an operator to manage every token an owner holds in that contract.
Why is using OpenZeppelin's audited contracts recommended for NFT development?
Answer: They provide tested, secure implementations of standards
OpenZeppelin offers community-audited, standard-compliant implementations that reduce security risk.
What happens when an NFT is 'burned'?
Answer: It is permanently destroyed and removed from circulation
Burning destroys a token, typically by sending it to the zero address, permanently reducing supply.
Which Solidity pattern helps prevent reentrancy attacks during minting or withdrawals?
Answer: Checks-Effects-Interactions
The Checks-Effects-Interactions pattern updates state before external calls, preventing reentrancy.
What is 'lazy minting'?
Answer: Deferring the on-chain mint until the first purchase, often via a signed voucher
Lazy minting delays the actual on-chain mint and its gas cost until a buyer purchases the NFT.
What does the supportsInterface() function (ERC-165) allow?
Answer: Detecting which standards a contract implements
ERC-165's supportsInterface lets callers query whether a contract implements a given interface like ERC-721.