hexlify
hexlify(
value,options?):string
Defined in: utils/bytes.ts:393
Converts a value into a hex string
Parameters
value
the value to convert
number | bigint | BytesLike | Hexable
options?
options to use when converting the value to a hex string
Returns
string
the value represented as a hex string
Examples
hexlify(4);// '0x04'hexlify(14);// '0x0e'