Is NIP57 still the best way to determine the amount of zaps a note has? I'm not getting reliable results searching for Kind 9735 events that have 'e' tags to my target event.

I'm using 'pynostr' library for python:

zappers = getevent(kinds=[9735], event_refs=['f49c4364445f1c780b8fecae595a7d4ba390df66dceaeaad063c0f235103f155'])

Am I missing something?

nostr:npub137c5pd8gmhhe0njtsgwjgunc5xjr2vmzvglkgqs5sjeh972gqqxqjak37w nostr:npub1vp8fdcyejd4pqjyrjk9sgz68vuhq7pyvnzk8j0ehlljvwgp8n6eqsrnpsw nostr:npub1nxa4tywfz9nqp7z9zp7nr7d4nchhclsf58lcqt5y782rmf2hefjquaa6q8

Reply to this note

Please Login to reply.

Discussion

No idea, but zap events are not propagated that well to begin with. So it depends which relay your are querying 🤔

I have a function that queries 3 different relays for zap receipts (primal, damus, nostr-pub)

Should I just keep adding relays? The zap sent to that event was from primal on my phone so I imagine it would at least get broadcast to the primal relay

But I guess I'll try to add more relays to your point

I'm really just looking for a reliable way to see if a note has been zapped and then by how much

nostr.band should have a good number of them, I think. Also Nostr.wine

Yeah you can probably just query nostr.band. I think they have a crawler that looks for everything.

nostr.band has an API endpoint to get stats like this for an event https://api.nostr.band

You’re a legend

I get a Gateway Time-Out error:

The zap receipts are propagated well though

I figured it out

You were right, it was just a relay thing

Nostr.band had the zap receipt but the other 3 relays I was looking at didn’t

Classic relay problem

Must be a problem with the library. Works great with nak or nostr-tools.

I’m not home right now. I can try querying for that with nak when I get home.

Make sure you’re querying for the event ID in the tags of the event and not the event ID of the zap receipt

I'm able to query the zaps on that note with nostr-tools. I only found one zap on it. Here's an example:

https://codesandbox.io/p/sandbox/nostr-zaps-query-example-8zds4c

I think you're probably structuring the query so that the relay looks for zap receipts with the id f49c4364445f1c780b8fecae595a7d4ba390df66dceaeaad063c0f235103f155 and not for zap receipts with an e tag that matches f49c4364445f1c780b8fecae595a7d4ba390df66dceaeaad063c0f235103f155.

It ended up just being a relay thing

Thanks for recommending Nostr.Band as that’s the most reliable one for me now

This program is about to be so sick! Pumped for you and nostr:npub137c5pd8gmhhe0njtsgwjgunc5xjr2vmzvglkgqs5sjeh972gqqxqjak37w to see it 👊