estimateGas method
Execution
Implementation
@override
Future<BigInt> estimateGas(TransactionRequest transaction) async {
// TODO: check transaction valid.
final amountHex = await _makeRPCCall<String>('eth_estimateGas', [
transaction.toJSON(),
]);
return hexToInt(amountHex);
}