Package org.symbol.sdk.nem.descriptors
Class TransferTransactionV2Descriptor
java.lang.Object
org.symbol.sdk.nem.descriptors.TransferTransactionV2Descriptor
- All Implemented Interfaces:
NemTransactionDescriptor,NemTypedDescriptor,TypedDescriptor
public final class TransferTransactionV2Descriptor
extends Object
implements NemTransactionDescriptor
- TransferTransactionV2Descriptor
Type safe descriptor used to generate a descriptor map for TransferTransactionV2Descriptor.
binary layout for a transfer transaction (V2, latest)
-
Constructor Summary
ConstructorsConstructorDescriptionTransferTransactionV2Descriptor(Address recipientAddress, Amount amount, MessageDescriptor message, List<SizePrefixedMosaicDescriptor> mosaics) Creates a descriptor for TransferTransactionV2. -
Method Summary
-
Constructor Details
-
TransferTransactionV2Descriptor
public TransferTransactionV2Descriptor(Address recipientAddress, Amount amount, MessageDescriptor message, List<SizePrefixedMosaicDescriptor> mosaics) Creates a descriptor for TransferTransactionV2.- Parameters:
recipientAddress- recipient addressamount- XEM amountmessage- optional message (field is omitted when null)mosaics- attached mosaics notice that mosaic amount is multipled by transfer amount to get effective amount (field is omitted when null)
-
-
Method Details
-
toMap
- TransferTransactionV2Descriptor.toMap
Builds a representation of this descriptor that can be passed to a factory function.
- Specified by:
toMapin interfaceTypedDescriptor- Returns:
Descriptor map that can be passed to a transaction factory.
-