@lelantos-org/sdk / protocol / isNameLabel
Function: isNameLabel()
ts
function isNameLabel(label): boolean;Defined in: @lelantos-org/sdk/dist/protocol/names.d.ts:9
Whether label is one the registrar accepts: [a-z0-9-], 3 to 32 characters, no leading or trailing hyphen and no two hyphens in a row. Mirrors LelantosNameRegistrar.isValidLabel.
Parameters
| Parameter | Type |
|---|---|
label | string |
Returns
boolean