Class PersonalTransactionManager


  • public class PersonalTransactionManager
    extends org.web3j.tx.TransactionManager
    • Field Detail

      • log

        private static final org.apache.logging.log4j.Logger log
      • web3j

        private final org.web3j.protocol.Web3j web3j
      • credentials

        private final org.web3j.crypto.Credentials credentials
      • password

        private final String password
      • recalculateNonce

        private Boolean recalculateNonce
      • txHashVerifier

        protected org.web3j.utils.TxHashVerifier txHashVerifier
    • Constructor Detail

      • PersonalTransactionManager

        public PersonalTransactionManager​(org.web3j.protocol.Web3j 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

      • setNonceBuilder

        public void setNonceBuilder​(NonceBuilder nonceBuilder)
      • 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:
        sendTransaction in class org.web3j.tx.TransactionManager
        Throws:
        IOException
      • sendCall

        public String sendCall​(String to,
                               String data,
                               org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter)
                        throws IOException
        Specified by:
        sendCall in class org.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:
        getCode in class org.web3j.tx.TransactionManager
        Throws:
        IOException
      • sign

        public String sign​(org.web3j.crypto.RawTransaction rawTransaction)
      • signAndSend

        public org.web3j.protocol.core.methods.response.EthSendTransaction signAndSend​(org.web3j.crypto.RawTransaction rawTransaction)
                                                                                throws IOException
        Throws:
        IOException
      • assertCallNotReverted

        static void assertCallNotReverted​(org.web3j.protocol.core.methods.response.EthCall ethCall)