0
0
Blockchain / Solidityprogramming~5 mins

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

Choose your learning style9 modes available
Recall & Review
beginner
What is the ERC-721 standard?
ERC-721 is a standard for creating Non-Fungible Tokens (NFTs) on the Ethereum blockchain. It defines how unique digital assets can be owned and transferred.
Click to reveal answer
beginner
What makes ERC-721 tokens different from ERC-20 tokens?
ERC-721 tokens are unique and non-fungible, meaning each token is different and cannot be exchanged one-to-one. ERC-20 tokens are fungible and identical to each other.
Click to reveal answer
intermediate
Name two key functions defined in the ERC-721 standard.
Two key functions are ownerOf(tokenId) which returns the owner of a specific token, and transferFrom(from, to, tokenId) which transfers ownership of a token.
Click to reveal answer
intermediate
What is the purpose of the tokenURI function in ERC-721?
tokenURI(tokenId) returns a URL pointing to metadata about the token, such as images or descriptions, helping wallets and apps display the NFT properly.
Click to reveal answer
intermediate
Why is the Approval event important in ERC-721?
The Approval event signals that the owner has allowed another address to manage a specific token, enabling marketplaces or other contracts to transfer tokens on behalf of the owner.
Click to reveal answer
Which of the following best describes an ERC-721 token?
AA decentralized exchange protocol
BA fungible token like a cryptocurrency
CA smart contract programming language
DA unique digital asset on Ethereum
What does the ownerOf(tokenId) function return?
AThe metadata URL of the token
BThe owner address of the token with the given ID
CThe total supply of tokens
DThe balance of tokens owned by an address
Which event is emitted when a token is transferred in ERC-721?
AApproval
BMint
CTransfer
DBurn
What is the main purpose of the tokenURI function?
ATo provide metadata about the token
BTo transfer the token
CTo approve another address
DTo check token balance
Which of these is NOT a feature of ERC-721 tokens?
ATokens are interchangeable one-to-one
BEach token is unique
CSupports ownership transfer
DIncludes metadata support
Explain what ERC-721 tokens are and how they differ from ERC-20 tokens.
Think about how each token is special or identical.
You got /4 concepts.
    Describe the role of the transferFrom function and the Approval event in ERC-721.
    Consider how tokens move and how others get permission.
    You got /3 concepts.