Events

Introduction

Events are used in a Contracts to provide information to the outside world. When an event is emitted, its name and arguments are recorded in transaction logs. As long as the contract is present on the blockchain, these logs can be accessed using the contract's address.

Configuration

Event Name

An Event Name is used to name and differentiate events. Choose a name that is specific and descriptive enough to clearly indicate the event's functionality and distinguish it from other events. The name will be used as a keyword in the code to reference the event.

Define Event Input

Define the input for the event. An event's input provides additional information when the event is emitted. All input data and their values will be included in the event's payload at emission time.

By carefully naming and defining inputs for your events, you can ensure they are clear, functional, and easily distinguishable within your smart contract.

Last updated