web3-utilsFunctionsasciiToHexasciiToHex CallableasciiToHex(str: string): stringShould be called to get hex representation (prefixed by 0x) of ascii string@exampleconsole.log(web3.utils.asciiToHex('Hello World'));> 0x48656c6c6f20576f726c64Parametersstr: stringString to be converted to hexReturns stringHex string
Should be called to get hex representation (prefixed by 0x) of ascii string