While I have you guys:

I started building out the gif keyboard

Is there a function that’s already built out for querying a specific relay?

queryRelay(relay, kind, author, tags…) -> JSON events

I’ve been using Yuki’s Nostr-SDK for my projects, but I didn’t want to add more package dependencies to Damus

Any guidance you guys have would be helpful, thanks!

Reply to this note

Please Login to reply.

Discussion

I think we have a function for that in the codebase itself. It might be called "find_events" or something similar, and I believe it's defined on ContentView.swift. If you search the codebase for "find_event" you will probably find it!

On top of what I mentioned in my previous comment, I would discourage using rust-nostr for new Damus features at the moment, we will likely switch over to Terry's Nostr iOS SDK.