Class RawTransaction

  • Direct Known Subclasses:
    SignedRawTransaction

    public class RawTransaction
    extends java.lang.Object
    Transaction class used for signing transactions locally.
    For the specification, refer to p4 of the yellow paper.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RawTransaction​(java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value, java.lang.String data)  
      protected RawTransaction​(java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value, java.lang.String data, java.math.BigInteger gasPremium, java.math.BigInteger feeCap)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static RawTransaction createContractTransaction​(java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.math.BigInteger value, java.lang.String init)  
      static RawTransaction createEtherTransaction​(java.math.BigInteger nonce, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value, java.math.BigInteger gasPremium, java.math.BigInteger feeCap)  
      static RawTransaction createEtherTransaction​(java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value)  
      static RawTransaction createTransaction​(java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.lang.String data)  
      static RawTransaction createTransaction​(java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value, java.lang.String data)  
      static RawTransaction createTransaction​(java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value, java.lang.String data, java.math.BigInteger gasPremium, java.math.BigInteger feeCap)  
      java.lang.String getData()  
      java.math.BigInteger getFeeCap()  
      java.math.BigInteger getGasLimit()  
      java.math.BigInteger getGasPremium()  
      java.math.BigInteger getGasPrice()  
      java.math.BigInteger getNonce()  
      java.lang.String getTo()  
      java.math.BigInteger getValue()  
      boolean isEIP1559Transaction()  
      boolean isLegacyTransaction()  
      • Methods inherited from class java.lang.Object

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

      • RawTransaction

        protected RawTransaction​(java.math.BigInteger nonce,
                                 java.math.BigInteger gasPrice,
                                 java.math.BigInteger gasLimit,
                                 java.lang.String to,
                                 java.math.BigInteger value,
                                 java.lang.String data)
      • RawTransaction

        protected RawTransaction​(java.math.BigInteger nonce,
                                 java.math.BigInteger gasPrice,
                                 java.math.BigInteger gasLimit,
                                 java.lang.String to,
                                 java.math.BigInteger value,
                                 java.lang.String data,
                                 java.math.BigInteger gasPremium,
                                 java.math.BigInteger feeCap)
    • Method Detail

      • createContractTransaction

        public static RawTransaction createContractTransaction​(java.math.BigInteger nonce,
                                                               java.math.BigInteger gasPrice,
                                                               java.math.BigInteger gasLimit,
                                                               java.math.BigInteger value,
                                                               java.lang.String init)
      • createEtherTransaction

        public static RawTransaction createEtherTransaction​(java.math.BigInteger nonce,
                                                            java.math.BigInteger gasPrice,
                                                            java.math.BigInteger gasLimit,
                                                            java.lang.String to,
                                                            java.math.BigInteger value)
      • createEtherTransaction

        public static RawTransaction createEtherTransaction​(java.math.BigInteger nonce,
                                                            java.math.BigInteger gasLimit,
                                                            java.lang.String to,
                                                            java.math.BigInteger value,
                                                            java.math.BigInteger gasPremium,
                                                            java.math.BigInteger feeCap)
      • createTransaction

        public static RawTransaction createTransaction​(java.math.BigInteger nonce,
                                                       java.math.BigInteger gasPrice,
                                                       java.math.BigInteger gasLimit,
                                                       java.lang.String to,
                                                       java.lang.String data)
      • createTransaction

        public static RawTransaction createTransaction​(java.math.BigInteger nonce,
                                                       java.math.BigInteger gasPrice,
                                                       java.math.BigInteger gasLimit,
                                                       java.lang.String to,
                                                       java.math.BigInteger value,
                                                       java.lang.String data)
      • createTransaction

        public static RawTransaction createTransaction​(java.math.BigInteger nonce,
                                                       java.math.BigInteger gasPrice,
                                                       java.math.BigInteger gasLimit,
                                                       java.lang.String to,
                                                       java.math.BigInteger value,
                                                       java.lang.String data,
                                                       java.math.BigInteger gasPremium,
                                                       java.math.BigInteger feeCap)
      • getNonce

        public java.math.BigInteger getNonce()
      • getGasPrice

        public java.math.BigInteger getGasPrice()
      • getGasLimit

        public java.math.BigInteger getGasLimit()
      • getTo

        public java.lang.String getTo()
      • getValue

        public java.math.BigInteger getValue()
      • getData

        public java.lang.String getData()
      • getGasPremium

        public java.math.BigInteger getGasPremium()
      • getFeeCap

        public java.math.BigInteger getFeeCap()
      • isLegacyTransaction

        public boolean isLegacyTransaction()
      • isEIP1559Transaction

        public boolean isEIP1559Transaction()