Modifier and Type | Field and Description |
---|---|
protected EnsResolver |
ensResolver |
static java.math.BigInteger |
GAS_PRICE
Deprecated.
use ContractGasProvider
|
protected TransactionManager |
transactionManager |
protected Web3j |
web3j |
Modifier | Constructor and Description |
---|---|
protected |
ManagedTransaction(Web3j web3j,
TransactionManager transactionManager) |
Modifier and Type | Method and Description |
---|---|
long |
getSyncThreshold()
This should only be used in case you need to get the
EnsResolver.syncThreshold
parameter, which dictates the threshold in milliseconds since the last processed block
timestamp should be to considered in sync the blockchain. |
java.math.BigInteger |
requestCurrentGasPrice()
Return the current gas price from the ethereum node.
|
protected TransactionReceipt |
send(java.lang.String to,
java.lang.String data,
java.math.BigInteger value,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit) |
void |
setSyncThreshold(long syncThreshold)
This should only be used in case you need to modify the
EnsResolver.syncThreshold
parameter, which dictates the threshold in milliseconds since the last processed block
timestamp should be to considered in sync the blockchain. |
public static final java.math.BigInteger GAS_PRICE
DefaultGasProvider
protected Web3j web3j
protected TransactionManager transactionManager
protected EnsResolver ensResolver
protected ManagedTransaction(Web3j web3j, TransactionManager transactionManager)
public long getSyncThreshold()
EnsResolver.syncThreshold
parameter, which dictates the threshold in milliseconds since the last processed block
timestamp should be to considered in sync the blockchain.
It is currently experimental and only used in ENS name resolution, but will probably be made available for read calls in the future.
public void setSyncThreshold(long syncThreshold)
EnsResolver.syncThreshold
parameter, which dictates the threshold in milliseconds since the last processed block
timestamp should be to considered in sync the blockchain.
It is currently experimental and only used in ENS name resolution, but will probably be made available for read calls in the future.
syncThreshold
- the sync threshold in millisecondspublic java.math.BigInteger requestCurrentGasPrice() throws java.io.IOException
Note: this method was previously called getGasPrice
but was renamed to
distinguish it when a bean accessor method on Contract
was added with that name.
If you have a Contract subclass that is calling this method (unlikely since those
classes are usually generated and until very recently those generated subclasses were
marked final
), then you will need to change your code to call this method
instead, if you want the dynamic behavior.
java.io.IOException
- if there's a problem communicating with the ethereum nodeprotected TransactionReceipt send(java.lang.String to, java.lang.String data, java.math.BigInteger value, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit) throws java.io.IOException, TransactionException
java.io.IOException
TransactionException