Class PersonalTransactionManager
- java.lang.Object
-
- org.web3j.tx.TransactionManager
-
- com.oceanprotocol.squid.external.web3.PersonalTransactionManager
-
public class PersonalTransactionManager extends org.web3j.tx.TransactionManager
-
-
Field Summary
Fields Modifier and Type Field Description private org.web3j.crypto.Credentials
credentials
private static org.apache.logging.log4j.Logger
log
private String
password
private org.web3j.protocol.admin.Admin
web3j
-
Constructor Summary
Constructors Constructor Description PersonalTransactionManager(org.web3j.protocol.admin.Admin web3j, org.web3j.crypto.Credentials credentials, String password)
PersonalTransactionManager(org.web3j.protocol.admin.Admin web3j, org.web3j.crypto.Credentials credentials, String password, int attempts, long sleepDuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BigInteger
getEstimatedGas(String to, String data)
protected BigInteger
getNonce()
org.web3j.protocol.core.methods.response.EthSendTransaction
sendTransaction(BigInteger gasPrice, BigInteger gasLimit, String to, String data, BigInteger value)
-
-
-
Field Detail
-
log
private static final org.apache.logging.log4j.Logger log
-
web3j
private final org.web3j.protocol.admin.Admin web3j
-
credentials
private final org.web3j.crypto.Credentials credentials
-
password
private final String password
-
-
Constructor Detail
-
PersonalTransactionManager
public PersonalTransactionManager(org.web3j.protocol.admin.Admin web3j, org.web3j.crypto.Credentials credentials, String password, int attempts, long sleepDuration)
-
PersonalTransactionManager
public PersonalTransactionManager(org.web3j.protocol.admin.Admin web3j, org.web3j.crypto.Credentials credentials, String password)
-
-
Method Detail
-
getNonce
protected BigInteger getNonce() throws IOException
- Throws:
IOException
-
getEstimatedGas
protected BigInteger getEstimatedGas(String to, String data) throws IOException
- Throws:
IOException
-
sendTransaction
public org.web3j.protocol.core.methods.response.EthSendTransaction sendTransaction(BigInteger gasPrice, BigInteger gasLimit, String to, String data, BigInteger value) throws IOException
- Specified by:
sendTransaction
in classorg.web3j.tx.TransactionManager
- Throws:
IOException
-
-