Utility function to retry async functions.
The argument object*
Converts BURST-XXXX-XXXX-XXXX-XXXXX into numeric Id
The BURST address
The numeric id, or undefined if address is invalid
Converts/Decodes a Base36 encoded string into hex string. UTF-8 is supported Inverse function convertHexStringToBase36String
The string to be decoded (either URI encoded or not)
The hex representation of input string
Converts/Decodes a Base64 encoded string to string. UTF-8 is supported Inverse function convertStringToBase64String
The string to be decoded (either URI encoded or not)
The original string
Converts a Burst/Block Time (seconds since genesis block) into Date
The numeric Id
Date
Converts a Burst/Block Time (seconds since genesis block) into Unix Epoch Time (milliseconds since 01.01.1970)
The numeric Id
Unix Epoch Time (milliseconds since 01.01.1970)
Converts byte array to hexadecimal string Inverse operation of convertHexStringToByteArray
The (unsigned) byte array to be converted
If true, converts hex string with uppercase characters (Default: false)
A hex string representing the byte array input
Converts a byte array into string Inverse function convertStringToByteArray
The byte array to be converted
The starting index of array to be converted (Default: 0)
The number of bytes to be considered, iff startIndex is given. If null the byte array's length is considered
The converted string
Converts a Date into Burst/Block Time (seconds since genesis block)
The date to be converted
The Burst Timestamp
Arbitrary length decimal to hexadecimal conversion
A decimal string or BigNumber representation
If set the hex string will be padded to given number, 8 or 16 or more
A hexadecimal string
Toggles the endianess of a hex string.
0xBEEF > 0xEFBE
If string is little Endianess it turns into Big Endianess, and vice versa
This method is mainly used for Smart Contract messaging and data inspection
The hex string to be converted
The converted string as hex string
Converts/Decodes a Hex encoded string into Base36 string. UTF-8 is supported Inverse function convertBase36StringToHexString
The string to be decoded (either URI encoded or not)
The hex representation of input string
Converts an hexadecimal string to byte array
The hexadecimal string to be converted
An byte array representing the hexadecimal input
Arbitrary length hexadecimal to decimal conversion https://stackoverflow.com/questions/21667377/javascript-hexadecimal-string-to-decimal-string
A hexadecimal string
A decimal string
Converts a Hexadecimally encoded string into String Inverse function convertStringToHexString
The Hex string to be converted
The string represented by the Hex String
Helper method to convert a Planck Value (BURST * 1E-8) String to BURST number
The amount in Planck (aka NQT)
A number expressed in Burst (not NQT)
the number
Encode a numeric id into BURST-XXXX-XXXX-XXXX-XXXXX
The numeric Id
the BURST address in Reed-Solomon encoding, or undefined if passed null, undefined
Converts/Encodes a String into Base64 (URI) encoded string. UTF-8 is supported. Inverse function convertBase64StringToString
The string to be converted
Determine whether the resulting string shall be URI compatible, or not. Default is true
The Base64 String representing the input string. The string is already URI encoded, i.e. can be used directly in browsers
Converts a string into byte array Inverse function convertByteArrayToString
The string to be converted
A byte array representing the string input
Converts/Encode a String into Hexadecimally encoded Inverse function convertHexStringToString
The Hex string to be converted
The Hex String representing the input string
Creates a deeplink according the CIP22 spec
burst.[domain]://v1?action=[action]&payload=[encodedData]
Deeplinks are a way to call/open applications and do certain actions within it, e.g. Phoenix wallet can redirect to the "Send Burst" screen a fill out the form according the passed payload.
The arguments for the deeplink
The Deeplink
Check for valid Burst address (format: BURST-XXXX-XXXX-XXXX-XXXXX)
The address
true, if is a valid address, else false
Parses a deeplink according the CIP22 spec
burst[.domain]://v1?action=[action]&payload=[encodedData]
The deeplink to be parsed
Optional encoding format, used to decode the payload. Default: Base64
The parsed deeplink parts.
Sums various NQT values and returns in Burst
Variable amount list with NQT string
The sum of all amounts in BURST
Symbol/Character for Planck (the smallest possible unit in Burstcoin)
Symbol/Character for BURST unit
The smallest possible fee
One Burst expressed in Planck
The utility package for BurstJS, with loads of convenience methods