eth_estimateGas
Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain.
Last updated
Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain.
Last updated
Object
- The transaction call object with the following:
from
(optional): the address the transaction is sent from.
to
(optional): the address the transaction is sent to.
gas
(optional): Integer of the gas provided for the transaction execution. eth_call consumes zero gas, but this parameter may be needed by some executions.
gasPrice
(optional): Integer of the gasPrice used for each paid gas.
value
(optional): Integer of the value sent with this transaction.
data
(optional): Hash of the method signature and encoded parameters. For details see .
Quantity
or tag
- choose 1 of the following options:
A hexadecimal block number.
"latest"
- the latest mined block.
"safe"
- the latest safe head block.
"finalized"
- the latest finalized block.
"pending"
- the pending state/transactions.