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

# Callables.contracts()

Returns Contracts object for the contracts of the functions/modifiers.

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

Returns the [Contracts](/glider-ide/api/contracts.md) object for the contracts of the callables. This method can be called on all [Callables](/glider-ide/api/callables.md) child classes: [Functions](/glider-ide/api/functions.md) and [Modifiers](/glider-ide/api/modifiers.md).

The function will account for the inheritance of the contracts, thus, even one callable can have multiple contracts where it is accessible.

### Functions Example

```python
from glider import *

def query():
  # Retrieve the contracts of a list of functions
  contracts = Functions().contracts().exec(100)

  # Return the first five contracts
  return contracts[:5]
```

Output:

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FWUL56gPSRpxv3IZzkyzs%2Fimage.png?alt=media&amp;token=73318ed8-a228-4a65-a06c-487e2bc715bf" alt=""><figcaption></figcaption></figure>

### Modifiers Example

```python
from glider import *

def query():
  # Retrieve the contracts of a list of modifiers
  contracts = Modifiers().contracts().exec(100)

  # Return the first five contracts
  return contracts[:5]
```

Output:

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2F0QX2tvvI2Vx2FrXL25Ae%2Fimage.png?alt=media&amp;token=62f1ecdf-4ad5-467e-8ee1-40cf38296f2e" alt=""><figcaption></figcaption></figure>
