Skip to main content

MAX_NAMES_PER_BATCH

Constant MAX_NAMES_PER_BATCH 

Source
pub const MAX_NAMES_PER_BATCH: usize = 100;
Expand description

Maximum number of names a single Enable instruction may carry.

Bounded by the ~64 KB transaction-size limit: 100 × 512-byte names (MAX_FEATURE_NAME_LENGTH) plus borsh length prefixes ≈ 51.6 KB, well inside the envelope with comfortable room for transaction headers, signatures, and other instructions in the same tx. Raising the cap requires re-validating the worst-case payload against the tx-size limit.