You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const contractExecTx = new ContractExecuteTransaction()
.setContractId(contractId)
.setGas(300000) // I want to estimate the gas value to put here
.setPayableAmount(payableAmount)
.setFunction(method, functionParams);
Solution
add estimate gas method
Alternatives
No response
The text was updated successfully, but these errors were encountered:
If I understood you correctly, we are currently working on this functionality. You can check it here - #2670. It will be released in the next stable version which is going to be somewhere in the beginning of January.
There is a way for you to get the exact gas cost by sending a POST request to Mirror Node but I would highly recommend you to wait for our next stable release which is going to make your job much easier and you wouldn't have to deal with any issues you may find if you try to implement it yourself.
Problem
Hello, is there any way to calculate gas in Hashgraph SDK like in web3js?
web:
I want to implement here,
hashgraph:
Solution
Alternatives
No response
The text was updated successfully, but these errors were encountered: