0
0
Blockchain / Solidityprogramming~5 mins

ERC-721 implementation in Blockchain / Solidity - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is ERC-721 in blockchain?
ERC-721 is a standard for creating Non-Fungible Tokens (NFTs) on the Ethereum blockchain. Each token is unique and cannot be replaced by another.
Click to reveal answer
beginner
What function in ERC-721 returns the owner of a specific token?
The function ownerOf(tokenId) returns the address of the owner of the token with the given tokenId.
Click to reveal answer
intermediate
Why does ERC-721 require a transferFrom function?
The transferFrom function allows the owner or an approved address to transfer ownership of a token to another address, enabling token trading and movement.
Click to reveal answer
intermediate
What is the purpose of the approve function in ERC-721?
The approve function lets the token owner authorize another address to transfer a specific token on their behalf.
Click to reveal answer
intermediate
Name two events defined in the ERC-721 standard and their purpose.
1. Transfer: Emitted when ownership of a token changes.<br>2. Approval: Emitted when a token owner approves another address to manage a token.
Click to reveal answer
Which function in ERC-721 returns the total number of tokens owned by an address?
AownerOf
BbalanceOf
CtotalSupply
DtokenURI
What does the tokenURI function provide in an ERC-721 contract?
AThe owner address of a token
BThe total number of tokens
CThe metadata URL for a token
DThe approval status of a token
Which event is emitted when a token is transferred in ERC-721?
ATransfer
BTokenMoved
COwnershipChanged
DApproval
What is the main difference between ERC-20 and ERC-721 tokens?
AERC-20 tokens are only for Ethereum, ERC-721 tokens are for Bitcoin
BERC-20 tokens are unique, ERC-721 tokens are fungible
CERC-20 tokens cannot be transferred, ERC-721 tokens can
DERC-20 tokens are fungible, ERC-721 tokens are unique
Which function allows an approved address to transfer a token on behalf of the owner?
AtransferFrom
BsafeTransferFrom
Capprove
DsetApprovalForAll
Explain the key functions and events that an ERC-721 contract must implement.
Think about how tokens are owned, transferred, and approved.
You got /7 concepts.
    Describe how ERC-721 tokens differ from ERC-20 tokens and why this matters.
    Consider what makes each token type special and their typical uses.
    You got /4 concepts.