---
description: Adds a filter to get contracts that have an event with the given signature.
---

# Contracts.with\_event\_signature()

`with_event_signature(signature: str) ->` [`Contracts`]()

## Query Example

```python
from glider import *

def query():
  contracts = Contracts().with_event_signature('Deposit(uint256,address)').exec(1)
  events = contracts[0].events()
  for event in events:
    print(event.signature)

  return contracts
```

## Output Example

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2F0AbOKUfPGneL4EXgHKnf%2Fimage.png?alt=media&#x26;token=7420c4c8-8457-4600-afc7-ecc1cde8d30c" alt=""><figcaption></figcaption></figure>
