> 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/contracts/contracts.mains.md).

# Contracts.mains()

Adds a filter to get contracts that are main.

`mains() →` [`Contracts`](/glider-ide/api/contracts.md)

The engine marks the contract as main, that is the one being executed on the deployed address

## Query Example

```python
from glider import *

def query():

  main_contracts = Contracts().mains().exec(5)

  return main_contracts
```

## Output Example

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FjWzGO75kq4g6iVTIE4TL%2Fimage.png?alt=media&amp;token=5f3ec9e8-0d4b-403a-81f5-cb059b56fa3d" alt=""><figcaption></figcaption></figure>
