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? @The Fishcake🐶🐾 @NotBiebs @Don't ₿elieve the Hype 🦊
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
nostr.band has an API endpoint to get stats like this for an event https://api.nostr.band
I get a Gateway Time-Out error: https://m.primal.net/KpJh.png
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 https://media.tenor.com/3_bylZubyPoAAAAC/face-palm-shake-my-head.gif
I’m not home right now. I can try querying for that with nak when I get home.
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 @The Fishcake🐶🐾 to see it 👊