getFilterLogs method
Get filter logs Filter Id Returns see getFilterChanges
Implementation
Future<EthereumFilter?> getFilterLogs(int? filterId) async {
if (filterId == null) {
throw ArgumentError.notNull('Ethereum::getFilterLogs - filterId');
}
final params = <String>[EthereumUtilities.intToHex(filterId)];
const method = EthereumRpcMethods.getFilterLogs;
final dynamic res = await _client.rpcClient.request(method, params);
if (res != null && res.containsKey(EthereumConstants.ethResultKey)) {
return EthereumFilter.fromMap(res[EthereumConstants.ethResultKey]);
}
_client.processError(method, res);
return null;
}