โ† All NFT Flashcard Decks

Art NFT Minting and Smart Contracts 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 Art NFT Minting and Smart Contracts flashcards as text
  1. What is 'gas' in the context of minting an NFT on Ethereum?

    Answer: A fee paid to miners/validators to process and confirm transactions

    Gas is the unit measuring computational work on Ethereum, and users pay gas fees in ETH to compensate validators for processing transactions.

  2. An artist discovers their NFT collection smart contract has a reentrancy vulnerability. What does this mean?

    Answer: An attacker can repeatedly call a function before the first execution completes, draining funds

    Reentrancy attacks exploit contracts that send ETH before updating state, allowing attackers to recursively call back into the function.

  3. What is the difference between a 'mint' function and a 'safeMint' function in ERC-721?

    Answer: safeMint checks that the recipient can handle ERC-721 tokens if it's a contract address

    safeMint calls onERC721Received on contract recipients to verify they can handle NFTs, preventing tokens from being locked in incompatible contracts.

  4. Which of the following best describes a 'smart contract ABI' when interacting with an NFT contract?

    Answer: An interface definition describing the contract's functions and data structures

    The ABI (Application Binary Interface) defines how to encode and decode calls to a contract's functions, acting as the interface between applications and the contract.

  5. A generative art NFT project uses a random number to assign traits at mint time. Why is using block.timestamp as randomness dangerous?

    Answer: Miners can manipulate block timestamps to influence trait outcomes

    Block timestamps can be slightly manipulated by miners, allowing them to choose favorable timestamps that produce rare traits for themselves.

  6. What does 'provenance' mean in the context of an NFT art smart contract?

    Answer: A verifiable record of the artwork's origin and ownership history on-chain

    On-chain provenance creates an immutable, verifiable history of an NFT's creation and all subsequent ownership transfers.

  7. What is the purpose of the 'totalSupply' function commonly found in NFT contracts?

    Answer: To return the total number of tokens that have been minted

    The totalSupply function returns how many tokens currently exist (have been minted), helping users track collection progress.