Skip to main content

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​

FieldTypeRule
labelstringMust match /^[a-zA-Z0-9.!#$%&+\-_]{2,14}$/ — 2–14 chars, letters/digits and . ! # $ % & + - _. A string that does not match throws param_error.
await dcent.setLabel('My-Wallet_01')