Members
(constant) NetworkLocator
Provides utility functions for finding a network.
- Source:
Methods
generateMosaicAliasId(fullyQualifiedName) → {BigInt}
Generates a mosaic id from a fully qualified mosaic alias name.
Parameters:
Name | Type | Description |
---|---|---|
fullyQualifiedName |
string | Fully qualified mosaic name. |
- Source:
Returns:
Computed mosaic id.
- Type
- BigInt
generateMosaicId(ownerAddress, nonce) → {BigInt}
Generates a mosaic id from an owner address and a nonce.
Parameters:
Name | Type | Description |
---|---|---|
ownerAddress |
Address | Owner address. |
nonce |
number | Nonce. |
- Source:
Returns:
Computed mosaic id.
- Type
- BigInt
generateNamespaceId(name, parentNamespaceId) → {BigInt}
Generates a namespace id from a name and an optional parent namespace id.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
name |
string | Namespace name. | |
parentNamespaceId |
BigInt | 0 | Parent namespace id. |
- Source:
Returns:
Computed namespace id.
- Type
- BigInt
generateNamespacePath(fullyQualifiedName) → {array.<BigInt>}
Parses a fully qualified namespace name into a path.
Parameters:
Name | Type | Description |
---|---|---|
fullyQualifiedName |
string | Fully qualified namespace name. |
- Source:
Returns:
Computed namespace path.
- Type
- array.<BigInt>
isValidNamespaceName(name) → {boolean}
Returns true if a name is a valid namespace name.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Namespace name to check. |
- Source:
Returns:
true if the specified name is valid.
- Type
- boolean