Global Feed Post Login
Replying to Avatar Rizful.com

#asknostr

Let's say I have a list of "note" (kind 1) events.

I also know which relays I got these events from.

I now want to get the "metadata" (kind 0) for the creator of each event.

What's the recommended way to get this kind 0 metadata?

I am finding that just subscribing to the relay which delivered the original event only RARELY delivers the kind 0 event......

Do I just try lots of random relays until I get the kind 0 event for this pubkey?

Avatar
SLCW 11mo ago

I think you can get user metadata from the same relay you got the note from because it would be a relay the user publishes to.

Reply to this note

Please Login to reply.

Discussion

Avatar
Rizful.com 11mo ago

I've found this is not the case.

Avatar
SLCW 11mo ago

Have you had any luck getting the user's preferred relays list with a NIP-65 query?

Thread collapsed
Thread collapsed