alchemy-sdk
Version:
Extended Ethers.js SDK for Alchemy APIs
22 lines (21 loc) • 512 B
TypeScript
/**
* Converts a hex string to a decimal number.
*
* @param hexString - The hex string to convert.
* @public
*/
export declare function fromHex(hexString: string): number;
/**
* Converts a number to a hex string.
*
* @param num - The number to convert to hex.
* @public
*/
export declare function toHex(num: number): string;
/**
* Checks if a value is a hex string.
*
* @param possibleHexString - The value to check.
* @public
*/
export declare function isHex(possibleHexString: string): boolean;