Recall & Review
beginner
What is the ERC-20 standard in blockchain?
ERC-20 is a technical standard used for smart contracts on the Ethereum blockchain to create fungible tokens. It defines a common set of rules that all tokens must follow to be compatible with wallets and exchanges.
Click to reveal answer
beginner
Name three mandatory functions defined by the ERC-20 standard.
The three mandatory functions are: <br>1.
totalSupply() - returns total tokens.<br>2. balanceOf(address) - returns token balance of an address.<br>3. transfer(address, uint256) - transfers tokens to another address.Click to reveal answer
intermediate
What is the purpose of the
approve and transferFrom functions in ERC-20?<code>approve</code> allows an owner to let another address spend tokens on their behalf. <code>transferFrom</code> lets the approved address transfer tokens from the owner's account. This enables delegated transfers.Click to reveal answer
beginner
What event does an ERC-20 token emit when tokens are transferred?
The
Transfer event is emitted. It logs the sender address, receiver address, and the amount of tokens transferred. This helps wallets and apps track token movements.Click to reveal answer
beginner
Why is the ERC-20 standard important for token interoperability?
Because all ERC-20 tokens follow the same rules, wallets, exchanges, and other tools can work with any ERC-20 token without special changes. This makes tokens easy to use and trade.
Click to reveal answer
Which function returns the total number of tokens in an ERC-20 contract?
✗ Incorrect
totalSupply() returns the total tokens created by the contract.What does the
transfer function do in ERC-20?✗ Incorrect
transfer moves tokens from the caller's address to another address.Which event is emitted when tokens are transferred in ERC-20?
✗ Incorrect
The
Transfer event logs token transfers.What is the role of the
approve function?✗ Incorrect
approve sets an allowance for delegated spending.Why do ERC-20 tokens follow a standard?
✗ Incorrect
The standard ensures interoperability across platforms.
Explain the key functions and events defined in the ERC-20 standard and their roles.
Think about how tokens are counted, moved, and delegated.
You got /5 concepts.
Describe why the ERC-20 standard is important for token usability and interoperability in the Ethereum ecosystem.
Consider how different tokens can work together smoothly.
You got /4 concepts.