HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

isAddress

Helper function that will check if a given address is valid.

Usage

tronWeb.isAddress()

Parameter
String

Return
Boolean

Example

tronWeb.isAddress("414fa1f834a47f621957ec2ae7d445da9b3be0bee4")
>true
tronWeb.isAddress("THEGR4Aor5pCDVktbbbwgHAE6PQWRfejBf")
>true