Package at.qubic.api.domain
Interface TransactionExtraData
- All Known Subinterfaces:
QxAssetOrder
- All Known Implementing Classes:
QxAddAskOrder,QxAddBidOrder,QxIssueAssetExtraData,QxRemoveAskOrder,QxRemoveBidOrder,QxTransferAssetExtraData
public interface TransactionExtraData
-
Method Summary
Modifier and TypeMethodDescriptiondefault longThe 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.
-
Method Details
-
getAmount
default long getAmount()The amount needed for the transaction. Depending on the extra data different amounts might need to be set.- Returns:
- the amount that should be set to the transaction. Defaults to 1L.
-
getInputType
short getInputType()The input type that fits to the transaction extra data.- Returns:
- the input type of the transctions.
-
toBytes
byte[] toBytes()Gets the transaction extra data in byte format. This bytes can be directly used for the transaction extra data field.- Returns:
- the transaction extra data bytes.
-