getAccountReputations method
Implementation
Future<List<AccountReputation>> getAccountReputations(
String accountLowerBounds, {
int? limit,
}) async {
final params = <String, dynamic>{'account_lower_bound': accountLowerBounds};
if (limit != null) {
params['limit'] = limit;
}
final bodyJson = await _fetchPostData(
method: 'reputation_api.get_account_reputations',
params: params,
);
final json = bodyJson['result'] as Map<String, dynamic>;
final list = json['reputations'] as List<dynamic>;
return [
for (final a in list)
AccountReputation.fromJson(a as Map<String, dynamic>)
];
}