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

# MethodProp.PUBLIC

This property will filter for functions that are exposed in a smart contract and marked with an access level of public. Adding this property filter to the query will add a filter for all functions with this property.

Functions declared with public access are callable from an external third party and from within the smart contract functions.

```solidity
function myFunction(uint256 investAmount) public {}
```

An example of a query that would filter for functions that are marked as public is:

```python
from glider import *
def query():
  props_included = [MethodProp.PUBLIC]
  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%2FbSw59KKwdegZdCO6Tktv%2Fimage.png?alt=media&amp;token=33ebb604-414c-4972-a6df-434a67a6f801" alt=""><figcaption></figcaption></figure>
