web3-utilsFunctionshexToByteshexToBytes CallablehexToBytes(bytes: string): Uint8ArrayConvert a hex string to a byte array@exampleconsole.log(web3.utils.hexToBytes('0x74657374'));> Uint8Array(4) [ 116, 101, 115, 116 ]Parametersbytes: stringReturns Uint8ArrayThe byte array representation of the input hex string
Convert a hex string to a byte array