Class LegacyTransaction
java.lang.Object
org.web3j.crypto.transaction.type.LegacyTransaction
- All Implemented Interfaces:
ITransaction
- Direct Known Subclasses:
Transaction1559,Transaction2930
Transaction class used for signing transactions locally.
For the specification, refer to p4 of the yellow paper.
For the specification, refer to p4 of the yellow paper.
-
Constructor Summary
ConstructorsConstructorDescriptionLegacyTransaction(BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, BigInteger value, String data) LegacyTransaction(TransactionType type, BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, BigInteger value, String data) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionList<org.web3j.rlp.RlpType>asRlpValues(Sign.SignatureData signatureData) static LegacyTransactioncreateContractTransaction(BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, BigInteger value, String init) static LegacyTransactioncreateEtherTransaction(BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, BigInteger value) static LegacyTransactioncreateTransaction(BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, String data) static LegacyTransactioncreateTransaction(BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, BigInteger value, String data) getData()getNonce()getTo()getType()getValue()
-
Constructor Details
-
LegacyTransaction
public LegacyTransaction(BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, BigInteger value, String data) -
LegacyTransaction
@Deprecated public LegacyTransaction(TransactionType type, BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, BigInteger value, String data) Deprecated.
-
-
Method Details
-
asRlpValues
- Specified by:
asRlpValuesin interfaceITransaction
-
createContractTransaction
public static LegacyTransaction createContractTransaction(BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, BigInteger value, String init) -
createEtherTransaction
public static LegacyTransaction createEtherTransaction(BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, BigInteger value) -
createTransaction
public static LegacyTransaction createTransaction(BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, String data) -
createTransaction
public static LegacyTransaction createTransaction(BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, BigInteger value, String data) -
getNonce
- Specified by:
getNoncein interfaceITransaction
-
getGasPrice
- Specified by:
getGasPricein interfaceITransaction
-
getGasLimit
- Specified by:
getGasLimitin interfaceITransaction
-
getTo
- Specified by:
getToin interfaceITransaction
-
getValue
- Specified by:
getValuein interfaceITransaction
-
getData
- Specified by:
getDatain interfaceITransaction
-
getType
- Specified by:
getTypein interfaceITransaction
-