web3-utilsFunctionsutf8ToHexutf8ToHex Callableutf8ToHex(str: string): stringShould be called to get hex representation (prefixed by 0x) of utf8 string@exampleconsole.log(utf8ToHex('web3.js'));> "0x776562332e6a73"Parametersstr: stringUtf8 string to be convertedReturns stringThe hex representation of the input string
Should be called to get hex representation (prefixed by 0x) of utf8 string