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

Returns true if the Contract is main, false otherwise.

`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="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2F1mUboM1GHRSHaweQaMRs%2Fimage.png?alt=media&amp;token=f9514958-3caa-4ae3-91e7-30fa242151a7" alt=""><figcaption></figcaption></figure>
