Package org.web3j.quorum.tx
Class ClientTransactionManager
java.lang.Object
org.web3j.tx.TransactionManager
org.web3j.quorum.tx.ClientTransactionManager
public class ClientTransactionManager
extends org.web3j.tx.TransactionManager
TransactionManager implementation for using a Quorum node to transact.
-
Field Summary
Fields inherited from class org.web3j.tx.TransactionManager
DEFAULT_POLLING_ATTEMPTS_PER_TX_HASH, DEFAULT_POLLING_FREQUENCY, REVERT_ERR_STR -
Constructor Summary
ConstructorsConstructorDescriptionClientTransactionManager(Quorum quorum, String fromAddress, String privateFrom, List<String> privateFor) ClientTransactionManager(Quorum quorum, String fromAddress, String privateFrom, List<String> privateFor, int attempts, int sleepDuration) ClientTransactionManager(Quorum quorum, String fromAddress, String privateFrom, List<String> privateFor, PrivacyFlag privacyFlag) ClientTransactionManager(Quorum quorum, String fromAddress, String privateFrom, List<String> privateFor, PrivacyFlag privacyFlag, int attempts, int sleepDuration) ClientTransactionManager(Quorum quorum, String fromAddress, String privateFrom, List<String> privateFor, PrivacyFlag privacyFlag, List<String> mandatoryFor) ClientTransactionManager(Quorum quorum, String fromAddress, String privateFrom, List<String> privateFor, PrivacyFlag privacyFlag, List<String> mandatoryFor, int attempts, int sleepDuration) ClientTransactionManager(Quorum quorum, String fromAddress, List<String> privateFor) Deprecated.ClientTransactionManager(Quorum quorum, String fromAddress, List<String> privateFor, int attempts, int sleepDuration) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionorg.web3j.protocol.core.methods.response.EthGetCodegetCode(String contractAddress, org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter) protected org.web3j.protocol.core.methods.response.TransactionReceiptprocessResponse(org.web3j.protocol.core.methods.response.EthSendTransaction transactionResponse) sendCall(String to, String data, org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter) org.web3j.protocol.core.methods.response.EthSendTransactionsendEIP1559Transaction(long chainId, BigInteger maxPriorityFeePerGas, BigInteger maxFeePerGas, BigInteger gasLimit, String to, String data, BigInteger value, boolean constructor) org.web3j.protocol.core.methods.response.EthSendTransactionsendTransaction(BigInteger gasPrice, BigInteger gasLimit, String to, String data, BigInteger value) org.web3j.protocol.core.methods.response.EthSendTransactionsendTransaction(BigInteger gasPrice, BigInteger gasLimit, String to, String data, BigInteger value, boolean constructor) voidsetPrivateFor(List<String> privateFor) Methods inherited from class org.web3j.tx.TransactionManager
executeTransaction, executeTransaction, executeTransactionEIP1559, executeTransactionEIP1559, getFromAddress, sendEIP1559Transaction
-
Constructor Details
-
ClientTransactionManager
-
ClientTransactionManager
-
ClientTransactionManager
-
ClientTransactionManager
-
ClientTransactionManager
-
ClientTransactionManager
-
ClientTransactionManager
@Deprecated public ClientTransactionManager(Quorum quorum, String fromAddress, List<String> privateFor, int attempts, int sleepDuration) Deprecated. -
ClientTransactionManager
@Deprecated public ClientTransactionManager(Quorum quorum, String fromAddress, List<String> privateFor) Deprecated.
-
-
Method Details
-
getPrivateFrom
-
getPrivateFor
-
setPrivateFor
-
sendTransaction
public org.web3j.protocol.core.methods.response.EthSendTransaction sendTransaction(BigInteger gasPrice, BigInteger gasLimit, String to, String data, BigInteger value) throws IOException - Overrides:
sendTransactionin classorg.web3j.tx.TransactionManager- Throws:
IOException
-
sendTransaction
public org.web3j.protocol.core.methods.response.EthSendTransaction sendTransaction(BigInteger gasPrice, BigInteger gasLimit, String to, String data, BigInteger value, boolean constructor) throws IOException - Specified by:
sendTransactionin classorg.web3j.tx.TransactionManager- Throws:
IOException
-
sendEIP1559Transaction
public org.web3j.protocol.core.methods.response.EthSendTransaction sendEIP1559Transaction(long chainId, BigInteger maxPriorityFeePerGas, BigInteger maxFeePerGas, BigInteger gasLimit, String to, String data, BigInteger value, boolean constructor) throws IOException - Specified by:
sendEIP1559Transactionin classorg.web3j.tx.TransactionManager- Throws:
IOException
-
sendCall
public String sendCall(String to, String data, org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter) throws IOException - Specified by:
sendCallin classorg.web3j.tx.TransactionManager- Throws:
IOException
-
getCode
public org.web3j.protocol.core.methods.response.EthGetCode getCode(String contractAddress, org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter) throws IOException - Specified by:
getCodein classorg.web3j.tx.TransactionManager- Throws:
IOException
-
processResponse
protected org.web3j.protocol.core.methods.response.TransactionReceipt processResponse(org.web3j.protocol.core.methods.response.EthSendTransaction transactionResponse) throws IOException, org.web3j.protocol.exceptions.TransactionException - Overrides:
processResponsein classorg.web3j.tx.TransactionManager- Throws:
IOExceptionorg.web3j.protocol.exceptions.TransactionException
-