Skip to content

isValidNearAccountId()

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / isValidNearAccountId

isValidNearAccountId(accountId): boolean

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:4149

Check if a string is a valid NEAR account ID (named or implicit)

Supports both:

  • Named accounts: alice.near, bob.testnet
  • Implicit accounts: 64 hex characters

string

boolean