Token Standards and Creation Flashcards
7 cards from real Blockchain Technology 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 and Creation flashcards as text
What is the key difference between ERC-721 and ERC-1155 token standards?
Answer: ERC-1155 supports both fungible and non-fungible tokens in one contract, ERC-721 only non-fungible
ERC-1155 is a multi-token standard handling fungible, non-fungible, and semi-fungible tokens together.
Which ERC-721 function returns the owner of a specific token ID?
Answer: ownerOf(tokenId)
ownerOf(tokenId) returns the address that currently owns the given NFT.
What is the primary purpose of the ERC-721 tokenURI() function?
Answer: Return a URI pointing to the token's JSON metadata
tokenURI() returns a link to metadata describing the NFT, often including name, image, and attributes.
Why does ERC-1155 enable significant gas savings for transferring many tokens?
Answer: It supports batch operations like safeBatchTransferFrom in a single transaction
Batch transfer functions let multiple token types and amounts move in one transaction, reducing overhead.
What safety check distinguishes safeTransferFrom from transferFrom in ERC-721?
Answer: It verifies the recipient contract implements onERC721Received
safeTransferFrom calls onERC721Received to ensure contract recipients can handle NFTs, preventing locked tokens.
In ERC-1155 metadata, what does the {id} substitution placeholder in a URI represent?
Answer: The lowercase hex token ID padded to 64 characters
Clients replace {id} with the 64-character zero-padded lowercase hex token ID to fetch per-token metadata.
Which interface must a contract implement to be recognized as ERC-721 compliant via ERC-165?
Answer: supportsInterface returning true for the ERC-721 interface ID
ERC-165's supportsInterface lets contracts advertise that they implement the ERC-721 interface ID.