getFeeHistory method

Future<Map<String, dynamic>> getFeeHistory(
  1. int blockCount,
  2. String newestBlock,
  3. List<double> rewardPercentiles
)

Implementation

Future<Map<String, dynamic>> getFeeHistory(
    int blockCount, String newestBlock, List<double> rewardPercentiles) async {
  final result = await _rpc('eth_feeHistory',
      ['0x${blockCount.toRadixString(16)}', newestBlock, rewardPercentiles]);
  return Map<String, dynamic>.from(result as Map);
}