Interface TransactionExtraData

All Known Subinterfaces:
QxAssetOrder
All Known Implementing Classes:
QxAddAskOrder, QxAddBidOrder, QxIssueAssetExtraData, QxRemoveAskOrder, QxRemoveBidOrder, QxTransferAssetExtraData

public interface TransactionExtraData
  • Method Summary

    Modifier and Type
    Method
    Description
    default long
    The amount needed for the transaction.
    short
    The input type that fits to the transaction extra data.
    byte[]
    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.