> 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/event/event.source_code.md).

# Event.source\_code()

`source_code() → str`

## Query Example

```python
from glider import *


def query():
  # Find contracts with the suffix "ERC20"
  contracts = Contracts().with_name_suffix("ERC20").exec(100)

  for c in contracts:
    for event in c.events().exec():
      # For each contract's event, print the event address
      print(event.source_code())

  return []
```

## Output Example

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