Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk
Class MirrorNodeContractEstimateGasQuery
java.lang.Object
com.hedera.hashgraph.sdk.MirrorNodeContractQuery<MirrorNodeContractEstimateGasQuery>
com.hedera.hashgraph.sdk.MirrorNodeContractEstimateGasQuery
public class MirrorNodeContractEstimateGasQuery
extends MirrorNodeContractQuery<MirrorNodeContractEstimateGasQuery>
-
Constructor Summary
Constructors -
Method Summary
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
-
MirrorNodeContractEstimateGasQuery
public MirrorNodeContractEstimateGasQuery()
-
-
Method Details
-
execute
Returns gas estimation for the EVM execution.- Parameters:
client- The Client instance to perform the operation with- Returns:
- The estimated gas cost
- Throws:
ExecutionException- if the query failsInterruptedException- if the thread is interrupted
-
execute
public long execute(Client client, Duration timeout) throws ExecutionException, InterruptedException Returns gas estimation for the EVM execution.- Parameters:
client- The Client instance to perform the operation withtimeout- The budget for the whole call, retries and backoff included- Returns:
- The estimated gas cost
- Throws:
ExecutionException- if the query failsInterruptedException- if the thread is interrupted
-
toString
- Overrides:
toStringin classMirrorNodeContractQuery<MirrorNodeContractEstimateGasQuery>
-