Description: Estimates the amount of gas required to execute a transaction.
Parameters
Name
Type
Description
object
The transaction object. The from field is optional, and the nonce field is omitted.
from
nonce
quantity or tag
integer / string (optional)
integer
string
Block number or one of 'latest', 'earliest', or 'pending'.
'latest'
'earliest'
'pending'
Returns
quantity
The estimated amount of gas required for the transaction.