Docs

hexToString

Converts a hexadecimal string to a UTF-8 string.

Example

import { hexToString } from "thirdweb/utils";
const string = hexToString("0x48656c6c6f2c20776f726c6421");
console.log(string); // "Hello, world!"

Parameters

Returns

The UTF-8 string representation of the hexadecimal string.