Using #nostr_sdk

1. How to fetch the relay list of a given user?

2. How to fetch the follow list from a given user?

3. How to follow a given npub?

#asknostr #nostr #programming

Reply to this note

Please Login to reply.

Discussion

# 👀🇧🇷

Relay lists: kind 10002 https://nips.nostr.com/65

https://nips.nostr.com/51

Follow list: kind 3 https://nips.nostr.com/2

https://nips.nostr.com/51

To follow a new user I would imagine you append to and rebroadcast your follow list, but am not 100% sure on this.

Oh right, missed that you're specifically using Nostr SDK, so I'm not much use to you. Apologies.

this nostr_sdk is so badly documented, I struggle even to perform the most basic tasks

It's a community project. You can contribute documentation as you figure it out, so other's don't have such trouble in the future 😉

I guess that is what I am doing