API ReferenceValidationFunction
beneficiaryRules()
function beneficiaryRules<P, Field>(field): ValidationRule<P>[];Rule factory: validates a beneficiary address field.
- Sync: format/checksum check
- Sync: allowlist check (no RPC — reads from locConfig)
Used by: createStaticLOC, createDynamicLOC, cancelLOC.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
P | - | - |
Field extends string | keyof P & string | The exact string key of P validated by this factory. |
Parameters
| Parameter | Type |
|---|---|
field | Field |
Returns
ValidationRule<P>[]