Skip to main content

index/functions/isValidUniqueKey.md

isValidUniqueKey(uniqueKey): uniqueKey is string

True when uniqueKey is a usable write key: 1 to 128 characters of A-Za-z0-9._:-, the shape the apply-results route accepts. The one definition behind assertUniqueKey, confirm() and the pending-swap store, so they can never disagree about what a valid key is.

Parameters​

ParameterType
uniqueKeyunknown

Returns​

uniqueKey is string