> For the complete documentation index, see [llms.txt](https://ai-agent-sdk-docs.crypto.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ai-agent-sdk-docs.crypto.com/crypto.com-developer-platform/on-chain-developer-platform-client-sdk/event-module.md).

# Event Module

Event module fetches event logs.

### 9.1 Get Logs

Get the emitted events of a smart contract.

{% tabs %}
{% tab title="Python" %}
Function Name

```python
get_logs
```

{% tabs %}
{% tab title="Query" %}

* Arguments

  ```python
  address (str): The address of the smart contract.
  ```
* Example Code

  ```python
  from crypto_com_developer_platform_client import Event

  logs = Event.get_logs('0x596A29345b8CAA702544B9167590c648efedB7B0')
  print(logs)
  ```

{% endtab %}

{% tab title="Response" %}

* Returns

  ```python
  A list of decoded contract events.
  ```
* Errors

  ```python
  ValueError: If the Event class is not initialized with a Client instance.
  ```
* Example Return

  ```python
  {'status': 'Success', 'data': {'logs': [{'_type': 'log', 'address': 'example-address', 'blockHash': 'example-hash', 'blockNumber': example-block-number, 'data': 'example-data', 'index': example-index, 'removed': example-boolean, 'topics': ['example-hash', 'example-hash'], 'transactionHash': 'example-hash', 'transactionIndex': example-index}, ...]}}
  ```

{% endtab %}
{% endtabs %}
{% endtab %}
{% endtabs %}
