November 2018
Intermediate to advanced
528 pages
13h 21m
English
Events allow for the convenient use of the EVM logging facilities. They are an important concept in smart contracts, as any off-chain environment connected to Ethereum's JSON-RPC API can listen to these events and act accordingly.
In general, there are three main use cases for events and logs in DApps:
When they are called, they cause their arguments to be stored in the transaction's log. An event is declared as using the event keyword, as follows: event CanceledEvent(string message, uint256 time);.
In the declaration, we determine the ...
Read now
Unlock full access