eth_estimateGas
Returns an estimation of gas for a given transaction. The API credit value for this method is 35
Parameters
transaction object
The transaction call object:
from string
The address from which the transaction is sent
to string *REQUIRED
The address to which the transaction is addressed
gas integer
The integer of gas provided for the transaction execution
gasPrice integer
The integer of gasPrice used for each paid gas encoded as hexadecimal
value integer
The integer of value sent with this transaction encoded as hexadecimal
data string
The hash of the method signature and encoded parameters
Result
Return
Quantity- The estimated amount of gas used
Last updated