utils
Enumerations
| Enumeration | Description |
|---|---|
| CoinFormat | - |
Variables
Functions
| Function | Description |
|---|---|
| fromBase64 | - |
| toBase64 | - |
| fromHex | - |
| toHex | - |
| deriveObjectID | Derive the ID of an object that has been created through derived_object. |
| deriveDynamicFieldID | - |
| formatAddress | - |
| formatDigest | - |
| formatType | - |
| trimAddress | - |
| trimOrFormatAddress | - |
| formatAmount | - |
| formatWithSubscript | - |
| formatBalance | Formats 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. |
| isValidTransactionDigest | Returns whether the tx digest is valid based on the serialization format |
| isValidIotaAddress | - |
| isValidIotaObjectId | - |
| parseStructTag | - |
| normalizeStructTag | - |
| normalizeIotaAddress | Normalize 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 | - |