Skip to main content

Function: isValidTokenName()

Gala Launchpad SDK 9.0.0-rc.5


Gala Launchpad SDK 9.0.0-rc.5 / index / isValidTokenName

Function: isValidTokenName()

isValidTokenName(tokenName, constraint): tokenName is string

Defined in: packages/launchpad-sdk/dist/utils/validation-helpers.d.ts:380

Checks if a token name is valid without throwing

Use this for conditional checks where you don't want exceptions.

Parameters​

tokenName​

unknown

The token name to check

constraint​

TokenNameConstraint

The route's token name constraint

Returns​

tokenName is string

true if valid, false otherwise

Since​

6.12.0