web3-utilsFunctionsnumberToHexnumberToHex CallablenumberToHex(value: Numbers): stringConverts value to it’s hex representation@exampleconsole.log(web3.utils.numberToHex(10));> "0xa"Parametersvalue: NumbersValue to be convertedReturns stringThe hex representation of the input value
Converts value to it’s hex representation