Events in Solidity

Learn about events and how to emit them in Solidity.

We'll cover the following

Events are the way we emit and log transaction data on a blockchain. Events are like functions; they accept parameters in the form of arguments that we want to log into the blockchain. Events are also a way to communicate to external listening applications, like frontend applications, to let them know something has happened on the blockchain.

Usage

To declare events in Solidity, we do something like this:

Get hands-on with 1200+ tech skills courses.