estimateGas method

Future<BigInt> estimateGas(
  1. Map<String, dynamic> txParams
)

Implementation

Future<BigInt> estimateGas(Map<String, dynamic> txParams) async {
  final result = await _rpc('eth_estimateGas', [txParams]) as String;
  return BigInt.parse(result.substring(2), radix: 16);
}