> 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()

`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="/files/mnIqpw2yzJj6RskdMHrO" alt=""><figcaption></figcaption></figure>
