estimateGas abstract method
- EthereumAddress to,
- 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,
);