getUnreceivedBlocksInBatch<T> method
Implementation
@override
Future<Map<String, List<T>>> getUnreceivedBlocksInBatch<T>(
List<Map<String, dynamic>> ranges) async {
final result = await makeRpcCall(
'ledger_getUnreceivedBlocksInBatch',
[ranges],
) as Map<String, dynamic>;
return result.map((key, value) {
final blocks = (value as List).map((e) => typeFactory<T>(e)).toList();
return MapEntry(key, blocks);
});
}