hermes-v2-sdk
Version:
⚒️ An SDK for building applications on top of Hermes V2
16 lines (15 loc) • 668 B
TypeScript
/**
* Validates an address and returns the parsed (checksummed) version of that address
* @param address the unchecksummed hex address
*/
export declare function validateAndParseAddress(address: string): string;
/**
* Checks if an address is valid by checking 0x prefix, length === 42 and hex encoding.
* @param address the unchecksummed hex address
*/
export declare function checkValidAddress(address: string): string;
/**
* Checks if an address is valid by checking 0x prefix, length === 42 and hex encoding.
* @param address the unchecksummed hex address
*/
export declare function checkIsValidAddress(address: string): string | undefined;