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

# Contract.functions()

`functions() →` [`Functions`](/glider-ide/api/functions.md)

The function returns all of the functions that the Contract has, including the inherited functions from its base classes.

## Example query

```python
from glider import *

def query():
  contracts = Contracts().exec(1)

  for contract in contracts:
    functions = contract.functions().exec()
    for function in functions:
      print(function.name)

  return contracts
```

## Example output

<figure><img src="/files/jUJjtWlPyddqHBgXlIt7" alt=""><figcaption></figcaption></figure>
