Class InternalTransactionBean

    • Constructor Detail

      • InternalTransactionBean

        public InternalTransactionBean()
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getFrom

        public String getFrom()
        Returns:
        the from address
      • getTo

        public String getTo()
        Returns:
        the to address
      • getNotBefore

        public Date getNotBefore()
        Returns:
        internal transaction timestamp this field is set from the author of the transaction the maximum allowed time in which a transaction can be included in a block, can be at most current time + 10 minutes. Transactions with a lower timestamp than the block creation time are discarded
      • getRedValue

        public BigInteger getRedValue()
        Returns:
        the redValue of the token
      • getGreenValue

        public BigInteger getGreenValue()
        Returns:
        the greenValue of the token
      • getTransactionHash

        public String getTransactionHash()
        Returns:
        the transactionHash
      • setFrom

        public void setFrom​(String from)
        Parameters:
        from - the from to set
      • setTo

        public void setTo​(String to)
        Parameters:
        to - the to to set
      • setNotBefore

        public void setNotBefore​(Date notBefore)
        Parameters:
        notBefore - the notBefore to set
      • setRedValue

        public void setRedValue​(BigInteger redValue)
        Parameters:
        redValue - the redValue to set
      • setGreenValue

        public void setGreenValue​(BigInteger greenValue)
        Parameters:
        greenValue - the greenValue to set
      • setTransactionHash

        public void setTransactionHash​(String transactionHash)
        Parameters:
        transactionHash - the transactionHash to set
      • getMessage

        public String getMessage()
        Returns:
        the message of the transaction
      • setMessage

        public void setMessage​(String message)
        Parameters:
        message - the message to set in the transaction
      • setTransactionType

        public void setTransactionType​(KeyContexts.TransactionType transactionType)
        Parameters:
        transactionType - the transactionType to set
      • getEpoch

        public Integer getEpoch()
        Returns:
        the epoch
      • getSlot

        public Integer getSlot()
        Returns:
        the time slot in which the transaction is included
      • setEpoch

        public void setEpoch​(Integer epoch)
        Parameters:
        epoch - the epoch to set
      • setSlot

        public void setSlot​(Integer slot)
        Parameters:
        slot - the slot to set