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?
✗ Incorrect
The
balanceOf function returns how many tokens an address owns.What does the
tokenURI function provide in an ERC-721 contract?✗ Incorrect
The
tokenURI function returns a URL pointing to metadata describing the token.Which event is emitted when a token is transferred in ERC-721?
✗ Incorrect
The
Transfer event signals that a token's ownership has changed.What is the main difference between ERC-20 and ERC-721 tokens?
✗ Incorrect
ERC-20 tokens are fungible (all tokens are the same), while ERC-721 tokens are unique and non-fungible.
Which function allows an approved address to transfer a token on behalf of the owner?
✗ Incorrect
The
transferFrom function lets an approved address transfer a token.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.