Class Transaction


  • public final class Transaction
    extends java.lang.Object
    Record containing transaction details.
    • Method Detail

      • getId

        public java.lang.String getId()
        Identifier.
      • getType

        public java.lang.String getType()
        Transaction type.
        See Also:
        TransactionType
      • getCurrencyCode

        public java.lang.String getCurrencyCode()
        Currency code.
        See Also:
        CurrencyCode
      • getNetwork

        public java.lang.String getNetwork()
        Network type.
        See Also:
        NetworkType
      • getStatus

        public java.lang.String getStatus()
        Transaction status.
        See Also:
        TransactionStatus
      • getAmount

        public java.math.BigDecimal getAmount()
        Amount in transaction currency or null if transaction is Ethereum contract deploy. Amount is calculated as transaction amount sent - transaction amounts received - change.
      • getFee

        public java.math.BigDecimal getFee()
        Transaction fee in transaction currency or null, if not yet available.
      • getNonce

        public java.lang.String getNonce()
        Transaction nonce or null. Used to prevent double spend.
      • getSenders

        public java.util.ArrayList<TransactionAmount> getSenders()
        Transaction senders.
      • getRecipients

        public java.util.ArrayList<TransactionAmount> getRecipients()
        Transaction recipients.
      • getInternalTransactions

        public java.util.ArrayList<InternalTransaction> getInternalTransactions()
        Internal transactions, e.g. ETH contract interaction side effects.
      • getCustodyOrder

        public CustodyOrder getCustodyOrder()
        Custody order properties if it is a transaction associated with a custody order, null otherwise.
      • getExchange

        public Exchange getExchange()
        Exchange properties if it is a transaction associated with an exchange, null otherwise.
      • getMetadata

        public java.lang.String getMetadata()
        Transaction metadata if exists, null otherwise.
      • getSubmittedAt

        public java.lang.Integer getSubmittedAt()
        Epoch timestamp when transaction was submitted or null for incoming transactions from outside of Zumo ecosystem.
      • getConfirmedAt

        public java.lang.Integer getConfirmedAt()
        Epoch timestamp when transaction was submitted or null if transaction was not confirmed yet.
      • getTimestamp

        public int getTimestamp()
        Epoch timestamp, minimum non-null value between submitted at and confirmed at timestamps.
      • 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