T402 API Reference - v2.8.0
    Preparing search index...

    Function isValidAccountId

    • Validate a NEAR account ID NEAR account IDs must:

      • Be 2-64 characters
      • Contain only lowercase alphanumeric, underscores, hyphens
      • Not start with a hyphen or underscore

      Parameters

      • accountId: string

        Account ID to validate

      Returns boolean

      Whether the account ID is valid