> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/contract/contract.events.md).

# Contract.events()

The function returns all the events of a Contract.

`events() →` [`APIList`](/glider-ide/api/iterables/apilist.md)`[`[`Event`](/glider-ide/api/event.md)`]`

## Example query

```python
from glider import *


def query():
  contracts = Contracts().with_name("IERC721").exec(1)

  for contract in contracts:
    events = contract.events().exec()
    for event in events:
      print(event.signature)

  return contracts
```

## &#x20;Output Example

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2Fpk3yz4roD3SfhWQL1Y0k%2Fimage.png?alt=media&amp;token=e193d3c4-0b2f-4001-a0a0-130b9ce1476f" alt=""><figcaption></figcaption></figure>
