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

# Contract.direct\_base\_contracts()

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

## Query Example

```python
from glider import *


def query():
  contracts = Contracts().exec(1, 7)
  
  for contract in contracts:
    direct_base_contracts = contract.direct_base_contracts().exec()
    print(f"Contract name: {contract.name}")
    for direct_base_contract in direct_base_contracts:
      print(f"Direct base contract name: {direct_base_contracts.name}")
 
  return contracts
```

## Example Output

<figure><img src="/files/4fuy2dadnaJOTjdstYqO" alt=""><figcaption></figcaption></figure>
