0
0
Blockchain / Solidityprogramming~5 mins

ERC-1155 multi-token standard in Blockchain / Solidity - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the ERC-1155 standard in blockchain?
ERC-1155 is a multi-token standard on Ethereum that allows a single smart contract to manage multiple token types, including both fungible and non-fungible tokens.
Click to reveal answer
intermediate
How does ERC-1155 improve efficiency compared to ERC-20 and ERC-721?
ERC-1155 reduces transaction costs and complexity by allowing batch transfers of multiple token types in one call, unlike ERC-20 and ERC-721 which handle tokens individually.
Click to reveal answer
beginner
What is a key feature of ERC-1155 regarding token types?
ERC-1155 supports both fungible tokens (like currencies) and non-fungible tokens (unique items) within the same contract.
Click to reveal answer
intermediate
Explain the purpose of the safeTransferFrom function in ERC-1155.
safeTransferFrom securely transfers a specific amount of a token type from one address to another, checking that the receiver can handle the tokens to prevent loss.
Click to reveal answer
intermediate
What event does ERC-1155 emit when tokens are transferred?
ERC-1155 emits TransferSingle or TransferBatch events to notify off-chain applications about token transfers, supporting single or multiple token types respectively.
Click to reveal answer
Which of the following best describes ERC-1155?
AA standard for managing multiple token types in one contract
BA standard only for fungible tokens
CA standard only for non-fungible tokens
DA standard for creating smart contracts unrelated to tokens
What is a main advantage of batch transfers in ERC-1155?
AThey increase gas fees
BThey require multiple smart contracts
CThey reduce transaction costs by sending multiple tokens at once
DThey only work for fungible tokens
Which function in ERC-1155 checks if the receiver can handle tokens safely?
AtransferFrom
Bmint
Capprove
DsafeTransferFrom
What types of tokens can ERC-1155 manage?
AOnly non-fungible tokens
BBoth fungible and non-fungible tokens
COnly fungible tokens
DOnly stablecoins
Which event is emitted when multiple token types are transferred in ERC-1155?
ATransferBatch
BApproval
CTransferSingle
DMint
Describe the main benefits of using the ERC-1155 multi-token standard over ERC-20 and ERC-721.
Think about efficiency and token variety.
You got /3 concepts.
    Explain how safeTransferFrom works in ERC-1155 and why it is important.
    Consider safety in token transfers.
    You got /3 concepts.