public class TransferTransactionFactory extends TransactionFactory<TransferTransaction>
TransferTransaction
Modifier and Type | Method and Description |
---|---|
TransferTransaction |
build() |
static TransferTransactionFactory |
create(NetworkType networkType,
Deadline deadline,
UnresolvedAddress recipient,
java.util.List<Mosaic> mosaics)
Static create method for factory.
|
static TransferTransactionFactory |
createPersistentDelegationRequestTransaction(NetworkType networkType,
Deadline deadline,
PrivateKey signingPrivateKey,
PrivateKey vrfPrivateKey,
PublicKey nodePublicKey)
Creates a TransferTransactionFactory with special message payload for persistent harvesting
delegation unlocking
|
Message |
getMessage()
Returns transaction message.
|
java.util.List<Mosaic> |
getMosaics()
Returns list of mosaic objects.
|
UnresolvedAddress |
getRecipient()
Returns address of the recipient.
|
TransferTransactionFactory |
message(Message message)
It sets the message if required.
|
calculateMaxFeeFromMultiplier, deadline, getDeadline, getGroup, getMaxFee, getNetworkType, getProvidedSize, getSignature, getSigner, getSize, getTransactionInfo, getType, getVersion, group, maxFee, signature, signer, size, transactionInfo, version
public static TransferTransactionFactory create(NetworkType networkType, Deadline deadline, UnresolvedAddress recipient, java.util.List<Mosaic> mosaics)
networkType
- Network type.deadline
- the deadlinerecipient
- Recipient address.mosaics
- List of mosaics.public static TransferTransactionFactory createPersistentDelegationRequestTransaction(NetworkType networkType, Deadline deadline, PrivateKey signingPrivateKey, PrivateKey vrfPrivateKey, PublicKey nodePublicKey)
networkType
- The network type.deadline
- the deadlinesigningPrivateKey
- Remote harvester signing private key linked to the main accountvrfPrivateKey
- VRF private key linked to the main accountnodePublicKey
- Recipient public keyTransferTransactionFactory
public UnresolvedAddress getRecipient()
public java.util.List<Mosaic> getMosaics()
Mosaic
public Message getMessage()
public TransferTransactionFactory message(Message message)
message
- the message to be set.public TransferTransaction build()
build
in class TransactionFactory<TransferTransaction>