# Contract.derived\_contracts()

`derived_contracts() →` [`Contracts`](https://glide.gitbook.io/main/glider-ide/api/contracts)

## Example query

```python
from glider import *


def query():
  contracts = Contracts().exec(1)
  
  for contract in contracts:
    derived_contracts = contract.derived_contracts().exec()
    print(f"Contract name: {contract.name}")
    for derived_contract in derived_contracts:
      print(f"Derived contract name: {derived_contract.name}")
 
  return []
```

## Example Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FOQLEiYFM3oeA53pxPhyw%2FScreenshot%202025-07-24%20at%2011.46.45%E2%80%AFAM.png?alt=media&#x26;token=f5243018-a0bb-4bef-a5b8-95337de48ac8" alt=""><figcaption></figcaption></figure>
