Function: resolveUniqueKeyPrefix()
GalaChain core SDK 1.0.0-rc.8 / index / resolveUniqueKeyPrefix
Function: resolveUniqueKeyPrefix()
resolveUniqueKeyPrefix(
prefix):string
Defined in: packages/gala-core-sdk/dist/index.d.ts:2263
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
prefix
string | 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.