Package at.qubic.api.domain.qx.request
Class QxTransferAssetExtraData
java.lang.Object
at.qubic.api.domain.qx.request.QxTransferAssetExtraData
- All Implemented Interfaces:
TransactionExtraData
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongThe amount needed for the transaction.shortThe input type that fits to the transaction extra data.byte[]toBytes()Gets the transaction extra data in byte format.
-
Field Details
-
SIZE
public static final short SIZE- See Also:
-
-
Constructor Details
-
QxTransferAssetExtraData
public QxTransferAssetExtraData()
-
-
Method Details
-
getAmount
public long getAmount()Description copied from interface:TransactionExtraDataThe amount needed for the transaction. Depending on the extra data different amounts might need to be set.- Specified by:
getAmountin interfaceTransactionExtraData- Returns:
- the amount that should be set to the transaction. Defaults to 1L.
-
getInputType
public short getInputType()Description copied from interface:TransactionExtraDataThe input type that fits to the transaction extra data.- Specified by:
getInputTypein interfaceTransactionExtraData- Returns:
- the input type of the transctions.
-
toBytes
public byte[] toBytes()Description copied from interface:TransactionExtraDataGets the transaction extra data in byte format. This bytes can be directly used for the transaction extra data field.- Specified by:
toBytesin interfaceTransactionExtraData- Returns:
- the transaction extra data bytes.
-