setLabel
Sets the device's display label. The label is validated against a strict character/length rule before being sent.
Signature
await dcent.setLabel(label: string): Promise<V1Response>
Parameters
| Field | Type | Rule |
|---|---|---|
label | string | Must match /^[a-zA-Z0-9.!#$%&+\-_]{2,14}$/ — 2–14 chars, letters/digits and . ! # $ % & + - _. Otherwise throws param_error. |
await dcent.setLabel('My-Wallet_01')