fromDecimal
Converts a number, or a string of numbers, into a hexadecimal string.
Usage
TronWeb.fromDecimal(number);
Parameters
Parameter | Description | Data Type |
---|---|---|
number | String or Number | Hexadecimal string / Number |
Returns
String
Example
> TronWeb.fromDecimal("12345678");
> '0xbc614e'