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.
Parameters
Section titled “Parameters”address
Section titled “address”The putative ICP account identifier.
string | undefined
Returns
Section titled “Returns”boolean