validateAccountId

utilsDocs


near-sdk-js v2.0.0 / utils / validateAccountId

Function: validateAccountId()

validateAccountId(accountId): boolean

Validates the Account ID according to the NEAR protocol Account ID rules.

Parameters

accountId: string

The Account ID string you want to validate.

Returns

boolean

Defined in

packages/near-sdk-js/src/utils.ts:287

Last updated