Skip to main content
Version: 4.0.0

toUtf8

Helper function that will convert HEX to UTF8.

Usage

TronWeb.toUtf8(value);

Parameters

ParameterDescriptionData Type
valueA hex stringString

Return

String

Example

> TronWeb.toUtf8("0x74657374");
> 'test'