Class Transaction
java.lang.Object
org.web3j.protocol.core.methods.request.Transaction
Transaction request object used the below methods.
- eth_call
- eth_sendTransaction
- eth_estimateGas
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTransaction
(String from, BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, BigInteger value, String data) Transaction
(String from, BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, BigInteger value, String data, Long chainId, BigInteger maxPriorityFeePerGas, BigInteger maxFeePerGas) -
Method Summary
Modifier and TypeMethodDescriptionstatic Transaction
createContractTransaction
(String from, BigInteger nonce, BigInteger gasPrice, String init) static Transaction
createContractTransaction
(String from, BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, BigInteger value, String init) static Transaction
createEthCallTransaction
(String from, String to, String data) static Transaction
createEthCallTransaction
(String from, String to, String data, BigInteger weiValue) static Transaction
createEtherTransaction
(String from, BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, BigInteger value) static Transaction
createFunctionCallTransaction
(String from, BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, String data) static Transaction
createFunctionCallTransaction
(String from, BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, BigInteger value, String data) getData()
getFrom()
getGas()
getNonce()
getTo()
getValue()
-
Field Details
-
DEFAULT_GAS
-
-
Constructor Details
-
Transaction
public Transaction(String from, BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, BigInteger value, String data) -
Transaction
public Transaction(String from, BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, BigInteger value, String data, Long chainId, BigInteger maxPriorityFeePerGas, BigInteger maxFeePerGas)
-
-
Method Details
-
createContractTransaction
public static Transaction createContractTransaction(String from, BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, BigInteger value, String init) -
createContractTransaction
public static Transaction createContractTransaction(String from, BigInteger nonce, BigInteger gasPrice, String init) -
createEtherTransaction
public static Transaction createEtherTransaction(String from, BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, BigInteger value) -
createFunctionCallTransaction
public static Transaction createFunctionCallTransaction(String from, BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, BigInteger value, String data) -
createFunctionCallTransaction
public static Transaction createFunctionCallTransaction(String from, BigInteger nonce, BigInteger gasPrice, BigInteger gasLimit, String to, String data) -
createEthCallTransaction
public static Transaction createEthCallTransaction(String from, String to, String data, BigInteger weiValue) -
createEthCallTransaction
-
getFrom
-
getTo
-
getGas
-
getGasPrice
-
getValue
-
getData
-
getNonce
-
getChainId
-
getMaxPriorityFeePerGas
-
getMaxFeePerGas
-