# Contract.direct\_base\_contracts()

`direct_base_contracts() →` [`Contracts`](https://glide.gitbook.io/main/glider-ide/api/contracts) `| 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="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FB0UWfMm2uWDFCMpMAbMX%2FScreenshot%202025-07-24%20at%2011.55.41%E2%80%AFAM.png?alt=media&#x26;token=fa3b2436-fb2a-474b-ac4a-420fbd46adc3" alt=""><figcaption></figcaption></figure>
