Package org.web3j.tx
Class FastRawTransactionManager
- java.lang.Object
-
- org.web3j.tx.TransactionManager
-
- org.web3j.tx.RawTransactionManager
-
- org.web3j.tx.FastRawTransactionManager
-
public class FastRawTransactionManager extends RawTransactionManager
Simple RawTransactionManager derivative that manages nonces to facilitate multiple transactions per block.
-
-
Field Summary
-
Fields inherited from class org.web3j.tx.RawTransactionManager
txHashVerifier
-
Fields inherited from class org.web3j.tx.TransactionManager
DEFAULT_POLLING_ATTEMPTS_PER_TX_HASH, DEFAULT_POLLING_FREQUENCY, REVERT_ERR_STR
-
-
Constructor Summary
Constructors Constructor Description FastRawTransactionManager(Web3j web3j, org.web3j.crypto.Credentials credentials)
FastRawTransactionManager(Web3j web3j, org.web3j.crypto.Credentials credentials, long chainId)
FastRawTransactionManager(Web3j web3j, org.web3j.crypto.Credentials credentials, long chainId, TransactionReceiptProcessor transactionReceiptProcessor)
FastRawTransactionManager(Web3j web3j, org.web3j.crypto.Credentials credentials, TransactionReceiptProcessor transactionReceiptProcessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigInteger
getCurrentNonce()
protected java.math.BigInteger
getNonce()
void
resetNonce()
void
setNonce(java.math.BigInteger value)
-
Methods inherited from class org.web3j.tx.RawTransactionManager
getCode, getTxHashVerifier, sendCall, sendTransaction, sendTransactionEIP1559, setTxHashVerifier, sign, signAndSend
-
Methods inherited from class org.web3j.tx.TransactionManager
executeTransaction, executeTransaction, executeTransactionEIP1559, executeTransactionEIP1559, getFromAddress, sendTransaction, sendTransactionEIP1559
-
-
-
-
Constructor Detail
-
FastRawTransactionManager
public FastRawTransactionManager(Web3j web3j, org.web3j.crypto.Credentials credentials, long chainId)
-
FastRawTransactionManager
public FastRawTransactionManager(Web3j web3j, org.web3j.crypto.Credentials credentials)
-
FastRawTransactionManager
public FastRawTransactionManager(Web3j web3j, org.web3j.crypto.Credentials credentials, TransactionReceiptProcessor transactionReceiptProcessor)
-
FastRawTransactionManager
public FastRawTransactionManager(Web3j web3j, org.web3j.crypto.Credentials credentials, long chainId, TransactionReceiptProcessor transactionReceiptProcessor)
-
-
Method Detail
-
getNonce
protected java.math.BigInteger getNonce() throws java.io.IOException
- Overrides:
getNonce
in classRawTransactionManager
- Throws:
java.io.IOException
-
getCurrentNonce
public java.math.BigInteger getCurrentNonce()
-
resetNonce
public void resetNonce() throws java.io.IOException
- Throws:
java.io.IOException
-
setNonce
public void setNonce(java.math.BigInteger value)
-
-