Search⌘ K
AI Features

Events

Explore how to use events in Solidity to capture and log important occurrences within smart contracts. Learn to declare, emit, and index events to facilitate communication with external systems while following best practices to optimize gas and relevance.

Events in Solidity are a means for capturing and logging specific occurrences or state changes within a contract. Events are contracted inheritable components that allow essential information to be communicated to external programs. They are especially important for signaling changes in the state of the contract, allowing external applications to respond appropriately.

Event creation

Events are declared using the event ...