Skip to main content

utils

Enumerations

EnumerationDescription
CoinFormat-

Variables

VariableDescription
toBase58-
fromBase58-
toB64-
fromB64-
toHEX-
fromHEX-
IOTA_DECIMALS-
NANOS_PER_IOTA-
MOVE_STDLIB_ADDRESS-
IOTA_FRAMEWORK_ADDRESS-
IOTA_SYSTEM_ADDRESS-
IOTA_CLOCK_OBJECT_ID-
IOTA_SYSTEM_MODULE_NAME-
IOTA_TYPE_ARG-
IOTA_SYSTEM_STATE_OBJECT_ID-
IOTA_ADDRESS_LENGTH-

Functions

FunctionDescription
fromBase64-
toBase64-
fromHex-
toHex-
deriveObjectIDDerive the ID of an object that has been created through derived_object.
deriveDynamicFieldID-
formatAddress-
formatDigest-
formatType-
trimAddress-
trimOrFormatAddress-
formatAmount-
formatWithSubscript-
formatBalanceFormats a coin balance based on our standard coin display logic. If the balance is less than 1, it will be displayed in its full decimal form. For values greater than 1, it will be truncated to 3 decimal places.
isValidTransactionDigestReturns whether the tx digest is valid based on the serialization format
isValidIotaAddress-
isValidIotaObjectId-
parseStructTag-
normalizeStructTag-
normalizeIotaAddressNormalize an IOTA address to ensure consistent format. Perform the following operations: 1. Make the address lower case 2. Prepend 0x if the string does not start with 0x. 3. Add more zeros if the length of the address(excluding 0x) is less than IOTA_ADDRESS_LENGTH
normalizeIotaObjectId-
parseAmount-
safeParseAmount-