Skip to main content

Function: isValidUniqueKey()

GalaChain core SDK 1.0.0-rc.8


GalaChain core SDK 1.0.0-rc.8 / index / isValidUniqueKey

Function: isValidUniqueKey()

isValidUniqueKey(uniqueKey): uniqueKey is string

Defined in: packages/gala-core-sdk/dist/index.d.ts:2291

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​

uniqueKey​

unknown

Returns​

uniqueKey is string