Skip to main content

hexToUtf8

Callable

  • hexToUtf8(str: string): string

  • Should be called to get utf8 from it's hex representation

    @example
    console.log(web3.utils.hexToUtf8('0x48656c6c6f20576f726c64'));
    > Hello World

    Parameters

    • str: string

      Hex string to be converted

    Returns string

    • Utf8 string