> 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/contracts/contracts.with_name_prefix.md).

# Contracts.with\_name\_prefix()

Adds a filter to get contracts whose names have the given prefix.

`with_name_prefix(`*`prefix: str, sensitivity: bool = True`*`) ->` [`Contracts`](/glider-ide/api/contracts.md)

## Query Example

```python
from glider import *

def query():

  main_contracts = Contracts().with_name_prefix("Acc", sensitivity=True).exec(5)

  return main_contracts
```

## Output Example

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2F4bBTUWeBRy6Nxut6AqJO%2Fimage.png?alt=media&amp;token=4c6a6c0d-d157-41ad-9c86-701e33635823" alt=""><figcaption></figcaption></figure>
