I love nostr-sdk. I'm using it in Python and finding it super fast and reliable. The only thing I miss is a field on the Event that shows which relay it came from. Adding source relay information would make event tracing much easier. Otherwise, fantastic work on this library!

Reply to this note

Please Login to reply.

Discussion

Glad to hear that 🧡

I'll see what I can do. Currently you can know which relay sent the event by monitoring the notifications (RelayPoolNotification).

Thanks for your feedback. I don't fully understand how to use RelayPoolNotification yet, so I'm creating a client for each relay to tag events with their source. This works well for my needs. The library is excellent - fast and reliable! Thank you for your work.

Here you can find an example, but it may not be updated to the last version: https://github.com/rust-nostr/nostr-sdk-ffi/blob/ac4d6a8fb8f61b5f3ce3148a99e9f117bcbc0afc/python/examples/bot.py

I'll try add an example in the book soon.

Just tried. Work perfectly. Thank you for the hint!