public abstract class Contract extends ManagedTransaction
| Modifier and Type | Field and Description |
|---|---|
static java.math.BigInteger |
GAS_LIMIT |
credentials, GAS_PRICE, gasLimit, gasPrice, web3j| Modifier | Constructor and Description |
|---|---|
protected |
Contract(java.lang.String contractAddress,
Web3j web3j,
Credentials credentials,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit) |
| Modifier and Type | Method and Description |
|---|---|
protected static <T extends Contract> |
deploy(java.lang.Class<T> type,
Web3j web3j,
Credentials credentials,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.lang.String binary,
java.lang.String encodedConstructor,
java.math.BigInteger value) |
protected static <T extends Contract> |
deployAsync(java.lang.Class<T> type,
Web3j web3j,
Credentials credentials,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.lang.String binary,
java.lang.String encodedConstructor,
java.math.BigInteger value) |
protected java.util.List<Type> |
executeCallMultipleValueReturn(Function function) |
protected java.util.concurrent.Future<java.util.List<Type>> |
executeCallMultipleValueReturnAsync(Function function) |
protected <T extends Type> |
executeCallSingleValueReturn(Function function) |
protected <T extends Type> |
executeCallSingleValueReturnAsync(Function function) |
protected TransactionReceipt |
executeTransaction(Function function)
Given the duration required to execute a transaction, asyncronous execution is strongly
recommended via
executeTransactionAsync(org.web3j.abi.datatypes.Function). |
protected java.util.concurrent.Future<TransactionReceipt> |
executeTransactionAsync(Function function)
Execute the provided function as a transaction asynchronously.
|
protected EventValues |
extractEventParameters(Event event,
TransactionReceipt transactionReceipt) |
java.lang.String |
getContractAddress() |
getAttempts, getGasPrice, getNonce, getSleepDuration, setAttempts, setSleepDuration, signAndSendprotected Contract(java.lang.String contractAddress,
Web3j web3j,
Credentials credentials,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit)
public java.lang.String getContractAddress()
protected <T extends Type> java.util.concurrent.Future<T> executeCallSingleValueReturnAsync(Function function)
protected java.util.concurrent.Future<java.util.List<Type>> executeCallMultipleValueReturnAsync(Function function)
protected <T extends Type> T executeCallSingleValueReturn(Function function) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionprotected java.util.List<Type> executeCallMultipleValueReturn(Function function) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionprotected TransactionReceipt executeTransaction(Function function) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException, TransactionTimeoutException
executeTransactionAsync(org.web3j.abi.datatypes.Function).function - to transact withOptional containing our transaction receiptjava.util.concurrent.ExecutionException - if the computation threw an
exceptionjava.lang.InterruptedException - if the current thread was interrupted
while waitingTransactionTimeoutException - if the transaction was not mined while waitingprotected java.util.concurrent.Future<TransactionReceipt> executeTransactionAsync(Function function)
function - to transact withFuture containing executing transactionprotected EventValues extractEventParameters(Event event, TransactionReceipt transactionReceipt)
protected static <T extends Contract> T deploy(java.lang.Class<T> type, Web3j web3j, Credentials credentials, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String binary, java.lang.String encodedConstructor, java.math.BigInteger value) throws java.lang.Exception
java.lang.Exceptionprotected static <T extends Contract> java.util.concurrent.CompletableFuture<T> deployAsync(java.lang.Class<T> type, Web3j web3j, Credentials credentials, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String binary, java.lang.String encodedConstructor, java.math.BigInteger value)