fromUtf8
Helper function that will convert UTF8 to HEX.
And toUtf8
function is also available.
Usage
TronWeb.fromUtf8(value)
Parameter
Parameter | Description | Data Type |
---|---|---|
value | The value to be converted | String |
Returns
String
Example
> TronWeb.fromUtf8("test")
> "0x74657374"