getEventsByCreationNumber method

Future getEventsByCreationNumber(
  1. String address,
  2. int creationNumber, {
  3. String? start,
  4. int? limit,
})

Events ///

Implementation

Future<dynamic> getEventsByCreationNumber(String address, int creationNumber, {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/$creationNumber";
  final resp = await http.get(path, queryParameters: params);
  return resp.data;
}