Recall & Review
beginner
What is the main purpose of events in smart contracts?
Events are used to communicate contract activity to external listeners, such as user interfaces or other off-chain systems, by logging important information when certain actions happen inside the contract.
Click to reveal answer
intermediate
How do events help reduce blockchain data usage?
Events store data in transaction logs instead of contract storage, which is cheaper and more efficient, allowing external apps to track contract activity without increasing on-chain storage costs.
Click to reveal answer
beginner
Why can't smart contracts directly notify external systems without events?
Smart contracts run on the blockchain and cannot push messages outside themselves; events act as signals that external systems can watch for to know when something important happened.
Click to reveal answer
intermediate
What is the difference between contract storage and event logs?
Contract storage holds persistent data on-chain and costs more gas, while event logs are cheaper, temporary records used to notify external listeners about contract actions.
Click to reveal answer
beginner
How do events improve user experience in decentralized applications (dApps)?
Events allow dApps to listen for contract changes and update the user interface in real-time, making interactions smoother and more responsive without constant polling.
Click to reveal answer
What do events in smart contracts primarily do?
✗ Incorrect
Events log contract activity so external systems can detect and respond to changes.
Why are events preferred over contract storage for notifying external apps?
✗ Incorrect
Events use transaction logs which cost less gas than storing data in contract storage.
Which of the following is NOT true about events?
✗ Incorrect
Smart contracts cannot push messages directly; events only log information for external listeners.
How do events improve decentralized app responsiveness?
✗ Incorrect
Events let dApps listen and update interfaces immediately when contract actions occur.
Where are event logs stored?
✗ Incorrect
Event logs are stored in the blockchain's transaction logs, accessible to external systems.
Explain why events are essential for communicating smart contract activity to external systems.
Think about how apps know what happens inside a contract.
You got /4 concepts.
Describe the difference between contract storage and event logs and why events are used for notifications.
Consider cost and purpose of each.
You got /4 concepts.