HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
Guides

Address Utilities

generateAddress

Generate a private key offline.

generateAddress()

RETURN

Random private key.

EXAMPLE

wrapper.generateAddress()

The result is:

0701b12b547d65abea69ee7d165fb04e52251d221d44acb6bbd92c8a47eeba81

parseAddress

Address conversion tool that converts the legal address entered by the user into ByteString format.

parseAddress(String address)

PARAMS

  1. address(String)*

address account or contract address in any allowed formats.

RETURN

The address in ByteString format.

EXAMPLE

wrapper.parseAddress("4122ED62967ED0D2186B2FC639D7972D172A95C855")

The result is:

<ByteString@2d9caaeb size=21 contents="A\"\355b\226~\320\322\030k/\3069\327\227-\027*\225\310U">