@dfinity/ledger-icp
Version:
A library for interfacing with the ICP ledger on the Internet Computer.
15 lines (14 loc) • 495 B
TypeScript
/**
* Checks account id check sum
*
* @throws InvalidAccountIDError
*/
export declare const checkAccountId: (accountId: string) => void;
/**
* 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.
*
* @param {string | undefined} address The putative ICP account identifier.
*/
export declare const isIcpAccountIdentifier: (address: string | undefined) => boolean;