estimateGas function
Implementation
Future<BigInt> estimateGas({
required String from,
required String to,
BigInt? value,
String? data,
}) async {
var result = await ethereum!.request("eth_estimateGas", [
{
"from": from,
"to": to,
"value": value,
"data": data,
}
]);
return BigInt.parse(result.toString());
}