estimate Gas
open suspend fun estimateGas(to: String, from: String? = null, value: String? = null, data: String? = null): BigInteger
Estimate gas for a transaction.
Return
Estimated gas as BigInteger
Parameters
to
Destination address
from
Source address (optional)
value
Value in wei as hex string (optional)
data
Contract call data (optional)