web3-utilsFunctionsbytesToHexbytesToHex CallablebytesToHex(bytes: Bytes): stringConvert a byte array to a hex string@exampleconsole.log(web3.utils.bytesToHex(new Uint8Array([72, 12])));> "0x480c"console.log(web3.utils.bytesToHex(Buffer.from("0c12", "hex")));> "0x0c12"Parametersbytes: BytesByte array to be convertedReturns stringThe hex string representation of the input byte array
Convert a byte array to a hex string