web3-utilsFunctionshexToByteshexToBytes CallablehexToBytes(bytes: string): BufferConvert a hex string to a byte array@exampleconsole.log(web3.utils.hexToBytes('0x74657374'));> <Buffer 74 65 73 74>Parametersbytes: stringReturns BufferThe byte array representation of the input hex string
Convert a hex string to a byte array