# MAX_CHUNK_COUNT

> `const` **MAX\_CHUNK\_COUNT**: `4294967295` = `4294967295`

Defined in: [packages/filecoin-encryption-envelope/src/constants.ts:95](https://github.com/FilOzone/synapse-sdk/blob/4fe24ea1c76c9b1fa1489b7cdbb1cc279bd2576a/packages/filecoin-encryption-envelope/src/constants.ts#L95)

Largest permitted chunk count.

The per-chunk nonce reserves 4 bytes for the chunk index (see
docs/tech-spec.md, "Per-chunk nonce"), which could in principle count up
to 2^32 values. The FIP deliberately caps `chunk_count` one below that, at
2^32 - 1, so we follow the spec's stated limit rather than the counter's
raw addressable range.