Skip to content

isIcpAccountIdentifier

isIcpAccountIdentifier(address): boolean

Defined in: packages/ledger-icp/src/utils/accounts.utils.ts:41

Checks if a given string (or undefined) is a valid ICP account identifier.

It uses the checkAccountId function to validate the checksum, but it does not throw an error.

The putative ICP account identifier.

string | undefined

boolean