# Events

## Introduction

Events are used in a [Contracts](/akb-wiki/astrakode-wiki/smart-contract-ide/technologies/ethereum/components/contracts.md) 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.&#x20;

## 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.

<figure><img src="/files/M4eaWVQOm7prmJFHn67c" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.astrakode.tech/akb-wiki/astrakode-wiki/smart-contract-ide/technologies/ethereum/components/events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
