Class ComposedTransaction


  • public final class ComposedTransaction
    extends java.lang.Object
    Record containing result of one of the transaction compose methods on Wallet object.
    See Also:
    Wallet
    • Constructor Summary

      Constructors 
      Constructor Description
      ComposedTransaction​(java.lang.String type, Account account, java.lang.String destination, java.math.BigDecimal amount, java.math.BigDecimal fee, java.lang.String nonce, java.lang.String signedTransaction, java.lang.String custodyOrderId, java.lang.String data)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      Account getAccount()
      Account the composed transaction belongs to.
      java.math.BigDecimal getAmount()
      Transaction amount in account currency.
      java.lang.String getCustodyOrderId()
      Custody order id for custody withdraw transaction, null otherwise.
      java.lang.String getData()
      Optional transaction data if available.
      java.lang.String getDestination()
      Transaction destination, i.e.
      java.math.BigDecimal getFee()
      Maximum transaction fee.
      java.lang.String getNonce()
      Transaction nonce to prevent double spend.
      java.lang.String getSignedTransaction()
      Signed transaction for a crypto transaction, null otherwise.
      java.lang.String getType()
      Transaction type, 'FIAT', 'CRYPTO', 'NOMINATED' or 'CUSTODY-WITHDRAW'.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ComposedTransaction

        public ComposedTransaction​(java.lang.String type,
                                   Account account,
                                   java.lang.String destination,
                                   java.math.BigDecimal amount,
                                   java.math.BigDecimal fee,
                                   java.lang.String nonce,
                                   java.lang.String signedTransaction,
                                   java.lang.String custodyOrderId,
                                   java.lang.String data)
    • Method Detail

      • getType

        public java.lang.String getType()
        Transaction type, 'FIAT', 'CRYPTO', 'NOMINATED' or 'CUSTODY-WITHDRAW'.
        See Also:
        TransactionType
      • getAccount

        public Account getAccount()
        Account the composed transaction belongs to.
      • getDestination

        public java.lang.String getDestination()
        Transaction destination, i.e. destination address for crypto transactions or user id for fiat transactions.
      • getAmount

        public java.math.BigDecimal getAmount()
        Transaction amount in account currency.
      • getFee

        public java.math.BigDecimal getFee()
        Maximum transaction fee.
      • getNonce

        public java.lang.String getNonce()
        Transaction nonce to prevent double spend.
      • getSignedTransaction

        public java.lang.String getSignedTransaction()
        Signed transaction for a crypto transaction, null otherwise.
      • getCustodyOrderId

        public java.lang.String getCustodyOrderId()
        Custody order id for custody withdraw transaction, null otherwise.
      • getData

        public java.lang.String getData()
        Optional transaction data if available.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object