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