queryFilter method

Future<List<Log>> queryFilter(
  1. EventFilter filter, [
  2. dynamic startBlock,
  3. dynamic endBlock
])

Return a List of Logs that have been emitted by the Contract by the filter.

Implementation

Future<List<Log>> queryFilter(EventFilter filter,
        [dynamic startBlock, dynamic endBlock]) async =>
    (await _call<List>(
      'queryFilter',
      [filter, startBlock, endBlock]..removeWhere((e) => e == null),
    ))
        .cast<Log>();