getLogs method

Future<List<FilterEvent>> getLogs(
  1. FilterOptions options
)

Returns all logs matched by the filter in options.

See also:

Implementation

Future<List<FilterEvent>> getLogs(FilterOptions options) {
  final filter = _EventFilter(options);
  return makeRPCCall<List<dynamic>>(
    'eth_getLogs',
    [filter._createParamsObject(true)],
  ).then((logs) {
    return logs.map(filter.parseChanges).toList();
  });
}