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