subscribeToZapReceipts method
fetch all zap receipts matching given pubKey and optional event id, in sats
Implementation
NdkResponse subscribeToZapReceipts(
{required String pubKey, String? eventId}) {
NdkResponse? response = _requests.subscription(filters: [
eventId != null
? Filter(kinds: [ZapReceipt.kKind], eTags: [eventId], pTags: [pubKey])
: Filter(kinds: [ZapReceipt.kKind], pTags: [pubKey])
]);
return response;
}