Symbol/Character for currency unit
The smallest possible fee
One SIGNA expressed in Planck
Amount formatting presets, see Amount.toString
1.000.000,123456
1,000,000.123456
Amount formatting presets, see ChainValue.toFormat
1.000.000,123456
1,000,000.123456
Amount formatting preset for dot decimal formatting 'Ꞩ 1,000,000.123456'
Utility function to retry async functions.
The argument object*
Converts an Asset Price (priceNQT) into Planck returned in Trade and/or Order objects from node
The priceNQT from asset queries
The decimals of that asset
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 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
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
Converts planck into a priceNQT
used by Node method placeOrder
.
Usually, you don't need this. AssetApi.placeAskOrder and AssetApi.placeBidOrder convert planck into correct value already. This helper is just for those who interact with the Node Http API directly
the amount in planck per token
the number of decimals for targeted asset
the Price in planck per one token quantity
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
signum.[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
Parses a deeplink according the CIP22 spec
signum[.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.
The utility package for SignumJS, with loads of convenience methods