java.lang.Object
com.hedera.hashgraph.sdk.MirrorNodeContractQuery<MirrorNodeContractCallQuery>
com.hedera.hashgraph.sdk.MirrorNodeContractCallQuery
public class MirrorNodeContractCallQuery
extends MirrorNodeContractQuery<MirrorNodeContractCallQuery>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDoes transient simulation of read-write operations and returns the result in hexadecimal string format.Does transient simulation of read-write operations and returns the result in hexadecimal string format.toString()Methods inherited from class com.hedera.hashgraph.sdk.MirrorNodeContractQuery
call, call, createJsonPayload, estimate, estimate, getBlockNumber, getCallData, getContractEvmAddress, getContractId, getGasLimit, getGasPrice, getSender, getSenderEvmAddress, getValue, parseContractCallResult, parseHexEstimateToLong, self, setBlockNumber, setContractEvmAddress, setContractId, setFunction, setFunction, setFunctionParameters, setGasLimit, setGasPrice, setSender, setSenderEvmAddress, setValue
-
Constructor Details
-
MirrorNodeContractCallQuery
public MirrorNodeContractCallQuery()
-
-
Method Details
-
execute
Does transient simulation of read-write operations and returns the result in hexadecimal string format.- Parameters:
client- The Client instance to perform the operation with- Returns:
- The result of the contract call
- Throws:
ExecutionException- if the query failsInterruptedException- if the thread is interrupted
-
execute
public String execute(Client client, Duration timeout) throws ExecutionException, InterruptedException Does transient simulation of read-write operations and returns the result in hexadecimal string format.- Parameters:
client- The Client instance to perform the operation withtimeout- The budget for the whole call, retries and backoff included- Returns:
- The result of the contract call
- Throws:
ExecutionException- if the query failsInterruptedException- if the thread is interrupted
-
toString
- Overrides:
toStringin classMirrorNodeContractQuery<MirrorNodeContractCallQuery>
-