# maxField

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**@midnight-ntwrk/compact-runtime v0.21.0**](https://docs.midnight.network/api-reference/compact-runtime.md)

***

[@midnight-ntwrk/compact-runtime](https://docs.midnight.network/api-reference/compact-runtime/globals.md) / maxField

# Function: maxField()

```
function maxField(): bigint;
```

Returns the maximum representable value in the proof systems scalar field (that is, 1 less than the prime modulus)

## Returns[​](#returns "Direct link to Returns")

`bigint`
