fromUtf8

辅助函数,将UTF8格式的数据转换为HEX格式。

用法

tronWeb.fromUtf8()

参数类型
String

返回值类型
String

示例

tronWeb.fromUtf8("test")
>"0x74657374"