Skip to main content

index/functions/resolveUniqueKeyPrefix.md

resolveUniqueKeyPrefix(prefix): string

Validates a caller-supplied uniqueKey prefix. The whole key (<prefix><uuid>) must stay a valid apply-results key, otherwise confirm() could never read the outcome of the write.

Parameters​

ParameterType
prefixstring | undefined

Returns​

string

Throws​

GalaSDKError INVALID_UNIQUE_KEY_PREFIX when the prefix has characters outside A-Za-z0-9._:- or is longer than 92 characters.