Class Transfer


  • public class Transfer
    extends java.lang.Object
    Represents a transfer from one purse to another
    Since:
    0.0.1
    • Constructor Summary

      Constructors 
      Constructor Description
      Transfer()  
      Transfer​(java.math.BigInteger id, java.lang.String to, java.lang.String from, java.math.BigInteger amount, java.lang.String deployHash, java.lang.String source, java.lang.String target, java.math.BigInteger gas)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Transfer.TransferBuilder builder()  
      java.math.BigInteger getAmount()
      Amount transfered
      java.lang.String getDeployHash()
      Hex-encoded hash
      java.lang.String getFrom()
      Hex-encoded account hash.
      java.math.BigInteger getGas()
      Decimal representation of a 512-bit integer.
      java.math.BigInteger getId()  
      protected java.lang.String getJsonAmount()  
      protected java.lang.String getJsonGas()  
      java.lang.String getSource()
      Hex-encoded, formatted URef
      java.lang.String getTarget()
      Hex-encoded, formatted URef
      java.lang.String getTo()
      Hex-encoded account hash.
      void setAmount​(java.math.BigInteger amount)
      Amount transfered
      void setDeployHash​(java.lang.String deployHash)
      Hex-encoded hash
      void setFrom​(java.lang.String from)
      Hex-encoded account hash.
      void setGas​(java.math.BigInteger gas)
      Decimal representation of a 512-bit integer.
      void setId​(java.math.BigInteger id)  
      protected void setJsonAmount​(java.lang.String value)  
      protected void setJsonGas​(java.lang.String value)  
      void setSource​(java.lang.String source)
      Hex-encoded, formatted URef
      void setTarget​(java.lang.String target)
      Hex-encoded, formatted URef
      void setTo​(java.lang.String to)
      Hex-encoded account hash.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Transfer

        public Transfer​(java.math.BigInteger id,
                        java.lang.String to,
                        java.lang.String from,
                        java.math.BigInteger amount,
                        java.lang.String deployHash,
                        java.lang.String source,
                        java.lang.String target,
                        java.math.BigInteger gas)
      • Transfer

        public Transfer()
    • Method Detail

      • getId

        public java.math.BigInteger getId()
      • getTo

        public java.lang.String getTo()
        Hex-encoded account hash.
      • getFrom

        public java.lang.String getFrom()
        Hex-encoded account hash.
      • getAmount

        public java.math.BigInteger getAmount()
        Amount transfered
      • getDeployHash

        public java.lang.String getDeployHash()
        Hex-encoded hash
      • getSource

        public java.lang.String getSource()
        Hex-encoded, formatted URef
      • getTarget

        public java.lang.String getTarget()
        Hex-encoded, formatted URef
      • getGas

        public java.math.BigInteger getGas()
        Decimal representation of a 512-bit integer.
      • setId

        public void setId​(java.math.BigInteger id)
      • setTo

        public void setTo​(java.lang.String to)
        Hex-encoded account hash.
      • setFrom

        public void setFrom​(java.lang.String from)
        Hex-encoded account hash.
      • setAmount

        public void setAmount​(java.math.BigInteger amount)
        Amount transfered
      • setDeployHash

        public void setDeployHash​(java.lang.String deployHash)
        Hex-encoded hash
      • setSource

        public void setSource​(java.lang.String source)
        Hex-encoded, formatted URef
      • setTarget

        public void setTarget​(java.lang.String target)
        Hex-encoded, formatted URef
      • setGas

        public void setGas​(java.math.BigInteger gas)
        Decimal representation of a 512-bit integer.