estimateGas abstract method

Future<BigInt> estimateGas(
  1. EthereumAddress to,
  2. String calldata
)

Estimates the gas cost of a transaction.

  • to: The address or contract to which the transaction is to be sent.
  • calldata: The calldata of the transaction.

Returns the estimated gas cost in wei.

Implementation

Future<BigInt> estimateGas(
  EthereumAddress to,
  String calldata,
);