public class NamespaceRegistrationTransactionFactory extends TransactionFactory<NamespaceRegistrationTransaction>
NamespaceRegistrationTransaction
Modifier and Type | Method and Description |
---|---|
NamespaceRegistrationTransaction |
build() |
static NamespaceRegistrationTransactionFactory |
create(NetworkType networkType,
Deadline deadline,
java.lang.String namespaceName,
NamespaceId namespaceId,
NamespaceRegistrationType namespaceRegistrationType,
java.util.Optional<java.math.BigInteger> duration,
java.util.Optional<NamespaceId> parentId)
Static create method for factory.
|
static NamespaceRegistrationTransactionFactory |
createRootNamespace(NetworkType networkType,
Deadline deadline,
java.lang.String namespaceName,
java.math.BigInteger duration)
Creates a root namespace factory.
|
static NamespaceRegistrationTransactionFactory |
createSubNamespace(NetworkType networkType,
Deadline deadline,
java.lang.String namespaceName,
NamespaceId parentId)
Create a sub namespace object.
|
java.util.Optional<java.math.BigInteger> |
getDuration()
Returns number of blocks a namespace is active.
|
NamespaceId |
getNamespaceId()
Returns id of the namespace derived from namespaceName.
|
java.lang.String |
getNamespaceName()
Returns namespace name.
|
NamespaceRegistrationType |
getNamespaceRegistrationType()
Returns namespace type either RootNamespace or SubNamespace.
|
java.util.Optional<NamespaceId> |
getParentId()
The id of the parent sub namespace.
|
calculateMaxFeeFromMultiplier, deadline, getDeadline, getGroup, getMaxFee, getNetworkType, getProvidedSize, getSignature, getSigner, getSize, getTransactionInfo, getType, getVersion, group, maxFee, signature, signer, size, transactionInfo, version
public static NamespaceRegistrationTransactionFactory create(NetworkType networkType, Deadline deadline, java.lang.String namespaceName, NamespaceId namespaceId, NamespaceRegistrationType namespaceRegistrationType, java.util.Optional<java.math.BigInteger> duration, java.util.Optional<NamespaceId> parentId)
networkType
- Network type.deadline
- the deadlinenamespaceName
- Namespace name.namespaceId
- Namespace id.namespaceRegistrationType
- Namespace registration type.duration
- Duration of the namespace.parentId
- Parent id.public static NamespaceRegistrationTransactionFactory createRootNamespace(NetworkType networkType, Deadline deadline, java.lang.String namespaceName, java.math.BigInteger duration)
networkType
- Network type.deadline
- the deadlinenamespaceName
- Namespace name.duration
- Duration of the namespace.public static NamespaceRegistrationTransactionFactory createSubNamespace(NetworkType networkType, Deadline deadline, java.lang.String namespaceName, NamespaceId parentId)
networkType
- Network type.deadline
- the deadlinenamespaceName
- Namespace name.parentId
- Namespace parent id.public java.lang.String getNamespaceName()
public NamespaceId getNamespaceId()
public java.util.Optional<java.math.BigInteger> getDuration()
public java.util.Optional<NamespaceId> getParentId()
public NamespaceRegistrationType getNamespaceRegistrationType()
public NamespaceRegistrationTransaction build()
build
in class TransactionFactory<NamespaceRegistrationTransaction>