> 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.is_main.md).

# Contract.is\_main()

`is_main() → bool`

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

## Example query

```python
from glider import *

def query():
  mains = Contracts().exec(30).filter(lambda x: x.is_main())

  return mains
```

## Example output

<figure><img src="/files/25wSD8X5jE4PYU1dWLda" alt=""><figcaption></figcaption></figure>
