getEventsByEventHandle method

Future getEventsByEventHandle(
  1. String address,
  2. String eventHandle,
  3. String fieldName, {
  4. String? start,
  5. int? limit,
})

Implementation

Future<dynamic> getEventsByEventHandle(String address, String eventHandle, String fieldName, {String? start, int? limit}) async {
  final params = <String, dynamic>{};
  if (start != null) params["start"] = start;
  if (limit != null) params["limit"] = limit;

  final path = "$endpoint/accounts/$address/events/$eventHandle/$fieldName";
  final resp = await http.get(path, queryParameters: params);
  return resp.data;
}