estimateGas method

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

Estimates gas for a transaction.

Implementation

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