whoisens-lib
Version:
Whois for ENS (Ethereum Name Service) lookup service
33 lines (32 loc) • 1.16 kB
TypeScript
import { EthAddressType } from '../lib/types.js';
declare const _default: {
getMethodID(methodSignature: any): string;
trimHex(hex: string): string;
/**
* Remove unneeded leading zeros.
*
* @param hex
*/
normalizeHex(hex: string): string;
add0x(hex: string): string;
remove0x(hex: string): string;
node(string: string): string;
hash(string: string): string;
getLTDfromDomain(domain: string): string;
getLabelsFromDomain(domain: string): string[];
getAddressParent(name: string): string;
getNameMain(name: string): string;
getAddressType(address: string): EthAddressType;
byteToString(str: string, truncate?: boolean): string;
decodeContentHash(string: string): object;
getContentHashAsURL(contentHash: any): string;
getContentHashCodec(codec: any): string;
hexToAscii(hex: any): string;
/**
* Return address hex (0x....) from name.addr.reverse.
* If address name is not in revert form, then just passing string is returning.
*/
reverseAddressToHex(address: string): string;
isResult(str: string | number): boolean;
};
export default _default;