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

# Contracts.state\_variables()

Returns the State Variables object for the state variables of the contracts.

`state_variables() →` [`StateVariables`](/glider-ide/api/statevariables.md)

## Query Example

```python
from glider import *


def query():
    state_variables = (
        Contracts()
        .with_name("Manager")
        .exec(1)
        .state_variables()
        .exec()
    )

    return state_variables
```

## Example Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FNu29NsLIZemAC3exxcFL%2FScreenshot%202025-09-17%20at%2011.03.22%E2%80%AFAM.png?alt=media&amp;token=c8cb36ea-d3ea-4425-ae46-03054bf192b5" alt=""><figcaption></figcaption></figure>
