Readonly
httpProtected
transactionsSimulates a transaction and returns an object containing information regarding the gas used and whether the transaction reverted.
The clauses of the transaction to simulate.
Optional
caller: stringThe address of the account sending the transaction.
Optional
options: EstimateGasOptionsOptional parameters for the request. Includes all options of the simulateTransaction
method excluding the caller
option.
An object containing information regarding the gas used and whether the transaction reverted, together with the decoded revert reason and VM errors. @throws{InvalidDataType}
Returns fee history for the returned block range.
The options for the fee history request
Fee history for the returned block range
The
GasModule
handles gas related operations and provides convenient methods for estimating the gas cost of a transaction.