tronweb
Version:
JavaScript SDK that encapsulates the TRON HTTP API
13 lines (12 loc) • 627 B
TypeScript
export declare function fromHex(address: string): string;
export declare function toHex(address: string): string;
export declare function toChecksumAddress(address: string): string;
export declare function isChecksumAddress(address: string): boolean;
export declare function fromPrivateKey(privateKey: string, strict?: boolean): string | false;
export declare function isAddress(address: unknown): boolean;
export declare function getCreate2Address({ from, salt, initCode, addressFormat, }: {
from: string;
salt: string | Uint8Array;
initCode: string | Uint8Array;
addressFormat?: 'base58' | 'hex';
}): string;