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

# Contract.derived\_contracts()

Returns Contracts object for the contracts which were derived from the contract.

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

## 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&amp;token=f5243018-a0bb-4bef-a5b8-95337de48ac8" alt=""><figcaption></figcaption></figure>
