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

Returns all the functions of a Contract.

`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="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FsKWjviNq0XKRW6Hwbx9g%2Fimage.png?alt=media&amp;token=9ad23aa9-ab8d-4fe1-8e1a-f0681edec6ff" alt=""><figcaption></figcaption></figure>
