HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

fromSun

Helper function that will convert a value in SUN to TRX. (1 SUN = 0.000001 TRX)

Usage

tronWeb.fromSun()

Parameter
String or Number

Return
String

Example

> tronWeb.fromSun("1000000")
'1'