Skip to main content

hexToAscii

Callable

  • hexToAscii(str: string): string

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

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

    Parameters

    • str: string

      Hex string to be converted to ascii

    Returns string

    • Ascii string