NFT ERC-721 vs. ERC-1155 Standards 2 — Questions and Answers
Question 1: In ERC-1155, what does a single contract allow you to manage?
- Only one fungible token type
- Multiple token types including both fungible and non-fungible (Correct answer)
- Only non-fungible tokens
- Only ERC-20 wrapped assets
Correct answer: Multiple token types including both fungible and non-fungible
ERC-1155 is a multi-token standard that lets one contract manage many token types, both fungible and non-fungible.
Question 2: Which function signature is unique to ERC-1155 for moving several token types at once?
- transferFrom
- safeBatchTransferFrom (Correct answer)
- approve
- ownerOf
Correct answer: safeBatchTransferFrom
safeBatchTransferFrom lets ERC-1155 move multiple token IDs and amounts in a single transaction.
Question 3: What does ERC-721's ownerOf(tokenId) return?
- The balance of a holder
- The address that owns the specific token (Correct answer)
- The total supply
- The token URI
Correct answer: The address that owns the specific token
ownerOf returns the single address that owns the given unique token ID.
Question 4: Why does ERC-1155 typically save gas when minting many items?
- It uses no storage
- It batches operations and shares one contract for all token types (Correct answer)
- It avoids the EVM entirely
- It mints off-chain only
Correct answer: It batches operations and shares one contract for all token types
Batching and a shared contract reduce per-token deployment and transaction overhead.
Question 5: In ERC-1155, how is a fungible token represented versus a non-fungible one?
- By contract address only
- By a token ID with a supply greater than one (fungible) or exactly one (NFT) (Correct answer)
- By a separate ERC-20 contract
- By the token URI alone
Correct answer: By a token ID with a supply greater than one (fungible) or exactly one (NFT)
A token ID with supply >1 behaves fungibly, while supply of 1 makes it effectively non-fungible.
Question 6: Which standard requires a separate contract deployment for each distinct collection by design?
- ERC-1155
- ERC-721 (Correct answer)
- ERC-20
- ERC-777
Correct answer: ERC-721
ERC-721 collections are traditionally deployed as individual contracts, one per collection.
Question 7: What interface must a contract implement to safely receive ERC-1155 tokens?
- IERC721Receiver
- IERC1155Receiver (Correct answer)
- IERC20
- IOwnable
Correct answer: IERC1155Receiver
Receiving contracts must implement IERC1155Receiver so safe transfers do not lock tokens.
In ERC-1155, what does a single contract allow you to manage?