fromPartialData static method

NostrCountEvent fromPartialData({
  1. required NostrFilter eventsFilter,
})

Implementation

static NostrCountEvent fromPartialData({
  required NostrFilter eventsFilter,
}) {
  final createdSubscriptionId =
      Nostr.instance.utilsService.consistent64HexChars(
    eventsFilter.toMap().toString(),
  );

  return NostrCountEvent(
    eventsFilter: eventsFilter,
    subscriptionId: createdSubscriptionId,
  );
}