HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

fromDecimal

Converts a number, or a string of numbers, into a hexadecimal string.

Usage

tronWeb.fromDecimal()

Parameters
Number|String - number

Returns
string

Example

tronWeb.fromDecimal("21")
> "0x15"