Token Standards (ERC-721/1155) 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 Token Standards (ERC-721/1155) flashcards as text
In ERC-721, which function returns the address that owns a given tokenId?
Answer: ownerOf(uint256)
ownerOf(tokenId) returns the current owner address of that specific NFT.
What does ERC-721's safeTransferFrom do that transferFrom does not?
Answer: Checks the recipient can receive ERC-721 via onERC721Received
safeTransferFrom verifies a contract recipient implements onERC721Received to avoid trapping tokens.
ERC-1155 supports which type of token in a single contract?
Answer: Both fungible and non-fungible
ERC-1155 is a multi-token standard handling fungible, non-fungible, and semi-fungible tokens together.
Which ERC-1155 function transfers multiple token types at once?
Answer: safeBatchTransferFrom
safeBatchTransferFrom moves arrays of ids and amounts in one call to save gas.
What standard is used to detect whether a contract implements ERC-721?
Answer: ERC-165 supportsInterface
ERC-165's supportsInterface lets callers query whether a contract implements a given interface id.
In ERC-721, what does approve(address, uint256) grant?
Answer: Permission for one address to transfer one specific token
approve authorizes a single address to transfer that one specific tokenId.
ERC-1155 uses a single URI with which placeholder for token metadata?
Answer: {id}
ERC-1155 metadata URIs use the {id} placeholder, replaced with the hex token id.