Converts a hexadecimal string to a UTF-8 string.
import { hexToString } from "thirdweb/utils";const string = hexToString("0x48656c6c6f2c20776f726c6421");console.log(string); // "Hello, world!"
function hexToString( hex: `0x${string}`, opts: HexToStringOpts,): string;
The hexadecimal string to convert.
let hex: `0x${string}`;
The options for the conversion.
let opts: { size?: number };
let returnType: string;
The UTF-8 string representation of the hexadecimal string.