public abstract class TransactionManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_POLLING_ATTEMPTS_PER_TX_HASH |
static long |
DEFAULT_POLLING_FREQUENCY |
static java.lang.String |
REVERT_ERR_STR |
Modifier | Constructor and Description |
---|---|
protected |
TransactionManager(TransactionReceiptProcessor transactionReceiptProcessor,
java.lang.String fromAddress) |
protected |
TransactionManager(Web3j web3j,
int attempts,
long sleepDuration,
java.lang.String fromAddress) |
protected |
TransactionManager(Web3j web3j,
java.lang.String fromAddress) |
Modifier and Type | Method and Description |
---|---|
protected TransactionReceipt |
executeTransaction(java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.lang.String to,
java.lang.String data,
java.math.BigInteger value) |
protected TransactionReceipt |
executeTransaction(java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.lang.String to,
java.lang.String data,
java.math.BigInteger value,
boolean constructor) |
protected TransactionReceipt |
executeTransactionEIP1559(long chainId,
java.math.BigInteger maxPriorityFeePerGas,
java.math.BigInteger maxFeePerGas,
java.math.BigInteger gasLimit,
java.lang.String to,
java.lang.String data,
java.math.BigInteger value) |
protected TransactionReceipt |
executeTransactionEIP1559(long chainId,
java.math.BigInteger maxPriorityFeePerGas,
java.math.BigInteger maxFeePerGas,
java.math.BigInteger gasLimit,
java.lang.String to,
java.lang.String data,
java.math.BigInteger value,
boolean constructor) |
abstract EthGetCode |
getCode(java.lang.String contractAddress,
DefaultBlockParameter defaultBlockParameter) |
java.lang.String |
getFromAddress() |
protected TransactionReceipt |
processResponse(EthSendTransaction transactionResponse) |
abstract java.lang.String |
sendCall(java.lang.String to,
java.lang.String data,
DefaultBlockParameter defaultBlockParameter) |
EthSendTransaction |
sendEIP1559Transaction(long chainId,
java.math.BigInteger maxPriorityFeePerGas,
java.math.BigInteger maxFeePerGas,
java.math.BigInteger gasLimit,
java.lang.String to,
java.lang.String data,
java.math.BigInteger value) |
abstract EthSendTransaction |
sendEIP1559Transaction(long chainId,
java.math.BigInteger maxPriorityFeePerGas,
java.math.BigInteger maxFeePerGas,
java.math.BigInteger gasLimit,
java.lang.String to,
java.lang.String data,
java.math.BigInteger value,
boolean constructor) |
EthSendTransaction |
sendTransaction(java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.lang.String to,
java.lang.String data,
java.math.BigInteger value) |
abstract EthSendTransaction |
sendTransaction(java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.lang.String to,
java.lang.String data,
java.math.BigInteger value,
boolean constructor) |
public static final int DEFAULT_POLLING_ATTEMPTS_PER_TX_HASH
public static final long DEFAULT_POLLING_FREQUENCY
public static final java.lang.String REVERT_ERR_STR
protected TransactionManager(TransactionReceiptProcessor transactionReceiptProcessor, java.lang.String fromAddress)
protected TransactionManager(Web3j web3j, java.lang.String fromAddress)
protected TransactionManager(Web3j web3j, int attempts, long sleepDuration, java.lang.String fromAddress)
protected TransactionReceipt executeTransaction(java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.lang.String data, java.math.BigInteger value) throws java.io.IOException, TransactionException
java.io.IOException
TransactionException
protected TransactionReceipt executeTransaction(java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.lang.String data, java.math.BigInteger value, boolean constructor) throws java.io.IOException, TransactionException
java.io.IOException
TransactionException
protected TransactionReceipt executeTransactionEIP1559(long chainId, java.math.BigInteger maxPriorityFeePerGas, java.math.BigInteger maxFeePerGas, java.math.BigInteger gasLimit, java.lang.String to, java.lang.String data, java.math.BigInteger value) throws java.io.IOException, TransactionException
java.io.IOException
TransactionException
protected TransactionReceipt executeTransactionEIP1559(long chainId, java.math.BigInteger maxPriorityFeePerGas, java.math.BigInteger maxFeePerGas, java.math.BigInteger gasLimit, java.lang.String to, java.lang.String data, java.math.BigInteger value, boolean constructor) throws java.io.IOException, TransactionException
java.io.IOException
TransactionException
public EthSendTransaction sendTransaction(java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.lang.String data, java.math.BigInteger value) throws java.io.IOException
java.io.IOException
public EthSendTransaction sendEIP1559Transaction(long chainId, java.math.BigInteger maxPriorityFeePerGas, java.math.BigInteger maxFeePerGas, java.math.BigInteger gasLimit, java.lang.String to, java.lang.String data, java.math.BigInteger value) throws java.io.IOException
java.io.IOException
public abstract EthSendTransaction sendTransaction(java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.lang.String data, java.math.BigInteger value, boolean constructor) throws java.io.IOException
java.io.IOException
public abstract EthSendTransaction sendEIP1559Transaction(long chainId, java.math.BigInteger maxPriorityFeePerGas, java.math.BigInteger maxFeePerGas, java.math.BigInteger gasLimit, java.lang.String to, java.lang.String data, java.math.BigInteger value, boolean constructor) throws java.io.IOException
java.io.IOException
public abstract java.lang.String sendCall(java.lang.String to, java.lang.String data, DefaultBlockParameter defaultBlockParameter) throws java.io.IOException
java.io.IOException
public abstract EthGetCode getCode(java.lang.String contractAddress, DefaultBlockParameter defaultBlockParameter) throws java.io.IOException
java.io.IOException
public java.lang.String getFromAddress()
protected TransactionReceipt processResponse(EthSendTransaction transactionResponse) throws java.io.IOException, TransactionException
java.io.IOException
TransactionException