public class RawTransactionManager extends TransactionManager
This transaction manager provides support for specifying the chain id for transactions as per EIP155, as well as for locally signing RawTransaction instances without broadcasting them.
Modifier and Type | Field and Description |
---|---|
protected TxHashVerifier |
txHashVerifier |
DEFAULT_POLLING_ATTEMPTS_PER_TX_HASH, DEFAULT_POLLING_FREQUENCY, REVERT_ERR_STR
Constructor and Description |
---|
RawTransactionManager(Web3j web3j,
org.web3j.crypto.Credentials credentials) |
RawTransactionManager(Web3j web3j,
org.web3j.crypto.Credentials credentials,
int attempts,
int sleepDuration) |
RawTransactionManager(Web3j web3j,
org.web3j.crypto.Credentials credentials,
long chainId) |
RawTransactionManager(Web3j web3j,
org.web3j.crypto.Credentials credentials,
long chainId,
int attempts,
long sleepDuration) |
RawTransactionManager(Web3j web3j,
org.web3j.crypto.Credentials credentials,
long chainId,
TransactionReceiptProcessor transactionReceiptProcessor) |
RawTransactionManager(Web3j web3j,
TxSignService txSignService,
long chainId) |
Modifier and Type | Method and Description |
---|---|
EthGetCode |
getCode(java.lang.String contractAddress,
DefaultBlockParameter defaultBlockParameter) |
protected java.math.BigInteger |
getNonce() |
TxHashVerifier |
getTxHashVerifier() |
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,
boolean constructor) |
EthSendTransaction |
sendTransaction(java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.lang.String to,
java.lang.String data,
java.math.BigInteger value,
boolean constructor) |
void |
setTxHashVerifier(TxHashVerifier txHashVerifier) |
java.lang.String |
sign(org.web3j.crypto.RawTransaction rawTransaction) |
EthSendTransaction |
signAndSend(org.web3j.crypto.RawTransaction rawTransaction) |
executeTransaction, executeTransaction, executeTransactionEIP1559, executeTransactionEIP1559, getFromAddress, processResponse, sendEIP1559Transaction, sendTransaction
protected TxHashVerifier txHashVerifier
public RawTransactionManager(Web3j web3j, org.web3j.crypto.Credentials credentials, long chainId)
public RawTransactionManager(Web3j web3j, TxSignService txSignService, long chainId)
public RawTransactionManager(Web3j web3j, org.web3j.crypto.Credentials credentials, long chainId, TransactionReceiptProcessor transactionReceiptProcessor)
public RawTransactionManager(Web3j web3j, org.web3j.crypto.Credentials credentials, long chainId, int attempts, long sleepDuration)
public RawTransactionManager(Web3j web3j, org.web3j.crypto.Credentials credentials)
public RawTransactionManager(Web3j web3j, org.web3j.crypto.Credentials credentials, int attempts, int sleepDuration)
protected java.math.BigInteger getNonce() throws java.io.IOException
java.io.IOException
public TxHashVerifier getTxHashVerifier()
public void setTxHashVerifier(TxHashVerifier txHashVerifier)
public 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
sendTransaction
in class TransactionManager
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, boolean constructor) throws java.io.IOException
sendEIP1559Transaction
in class TransactionManager
java.io.IOException
public java.lang.String sendCall(java.lang.String to, java.lang.String data, DefaultBlockParameter defaultBlockParameter) throws java.io.IOException
sendCall
in class TransactionManager
java.io.IOException
public EthGetCode getCode(java.lang.String contractAddress, DefaultBlockParameter defaultBlockParameter) throws java.io.IOException
getCode
in class TransactionManager
java.io.IOException
public java.lang.String sign(org.web3j.crypto.RawTransaction rawTransaction)
public EthSendTransaction signAndSend(org.web3j.crypto.RawTransaction rawTransaction) throws java.io.IOException
java.io.IOException