> 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/callables/methodprop/methodprop.is_view.md).

# MethodProp.IS\_VIEW

In a smart contract a function can be declared that will not modify any state variable values. These functions are marked as VIEW functions

An example of a view function is:

```solidity
function getOwner() external view returns address {
	return owner;
}
```

An example of a query that would select only VIEW functions is:

```python
from glider import *
def query():
  props_included = [MethodProp.IS_VIEW]
  functions = Functions()\
      .with_all_properties(props_included)\
      .exec(5)

  return functions
```

## Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2Fnt9MbjlpRNpwOJ2wUee1%2Fimage.png?alt=media&amp;token=ce9259c4-3e77-473b-b2a9-6d43b0785270" alt=""><figcaption></figcaption></figure>
