Package org.web3j.crypto
Class RawTransaction
- java.lang.Object
-
- org.web3j.crypto.RawTransaction
-
- Direct Known Subclasses:
SignedRawTransaction
public class RawTransaction extends java.lang.ObjectTransaction class used for signing transactions locally.
For the specification, refer to p4 of the yellow paper.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRawTransaction(java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value, java.lang.String data)protectedRawTransaction(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 RawTransactioncreateContractTransaction(java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.math.BigInteger value, java.lang.String init)static RawTransactioncreateEtherTransaction(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 RawTransactioncreateEtherTransaction(java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value)static RawTransactioncreateTransaction(java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.lang.String data)static RawTransactioncreateTransaction(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 RawTransactioncreateTransaction(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.StringgetData()java.math.BigIntegergetFeeCap()java.math.BigIntegergetGasLimit()java.math.BigIntegergetGasPremium()java.math.BigIntegergetGasPrice()java.math.BigIntegergetNonce()java.lang.StringgetTo()java.math.BigIntegergetValue()booleanisEIP1559Transaction()booleanisLegacyTransaction()
-
-
-
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()
-
-