API ReferenceValidationFunction
addressRules()
function addressRules<P, Field>(field): ValidationRule<P>[];Rule factory: validates an Ethereum address field.
Sync-only — checks format and checksum via validateAddress. Used by: beneficiary, tokenAddress,
toAccount, destination, etc.
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>[]