Avatar
Rizful.com
97f848adcc4c6276685fe48426de5614887c8a51ada0468cec71fba938272911
Rizful.com: Free, easy-to-use homebase for Bitcoin on Lightning. ✉️ Free Lightning Address ⚡ Fast, reliable zaps & Lightning payments 🔌 Connect to hundreds of apps with NWC 🛡️ Enterprise-grade uptime & reliability Created by the team behind The Megalith Node, one of the biggest routing nodes on the Lightning Network.

Test note from Primal. Does this even work.

Coming from 15+ years experience with web applications and databases, there is something incredibly disorientating but thrilling about Nostr development. The idea that you just "try to subscribe" to something and then sit around and hope something useful shows up... that's pretty different from SQL queries, isn't it!

nostr:npub12vkcxr0luzwp8e673v29eqjhrr7p9vqq8asav85swaepclllj09sylpugg This might be an interesting test case for you. Please check out these two URLs:

https://yakihonne.com/notes/nevent1qgsf07zg4hxyccnkdp07fppxmetpfzru3fg6mgzx3nk8r7af8qnjjygqyq8rl6dnlmcth26r789srstan0hjhqtxdm68dl6wj3dkqfjkd24ps7fnlmn

https://primal.net/e/note1pcl7nvl77za6ksl3evquzlvmau4czenw73m07n55tdszv4n24gvqka2jdt

These are the thread for the same original node.

On nostr:npub1yzvxlwp7wawed5vgefwfmugvumtp8c8t0etk3g8sky4n0ndvyxesnxrf8q

.... I see 24 replies.

... On nostr:npub12vkcxr0luzwp8e673v29eqjhrr7p9vqq8asav85swaepclllj09sylpugg I see only 3 replies!

Is this because these replies are living on relays that Primal doesn't know about?

Or is this something do to with Primal's caching behavior?

Would be interesting to investigate

OK, so my original question was "how do I get kind 0 metadata for an arbitrary user?".... One interesting idea I tried was to subscribe to BOTH kind 0 (metadata) and kind 10002 (nip-65) events, with the idea that, if I was not able to get the kind 0 (metadata) event, but WAS able to to get the 10002 event, then I could use query the suggested relays from the 10002 events in a subsequent attempt to get the metadata.

So far this has not worked at all for me. For some reason, the number of pubkeys where I have 10002 events but NOT 0 (zero) events, is NONE... put another way... "For every users where I have 10002 events, I already have 0 (zero) events".... So the 10002 events don't seems to be useful for getting metadata.

The way I have been able to get 0 (zero) metadata events for users is like this .... start with an array of big relays, like....

["wss://purplepag.es",

"wss://relay.nostr.band",

"wss://nostr-01.yakihonne.com",

"wss://relay.damus.io",

"wss://nos.lol"]

.... and then, iterate through these, setting up a subscription like this .....

filter: Nostr::Filter.new(

kinds: [

0, 10002

]

authors: agent_pubkeys

)

... where the authors is a random slice of the array of pubkeys I am looking for. I did this for not more than 30 minutes, and found that my "yield" for events went down over time... and then finally I stopped getting any new events..

I interpret this decreased yield over time as: "You've successfully got all the metdata events for the users who have published metadata events, and now your yield has gone down since all you have left are users who have NOT published metadata events, so it's time to quit now".

So far thus the shotgun approach -- just subscribe to a bunch of big relays, try pubkeys a few times, and then give up if you try a few times and still no Kind 0 (metadata) events are produced.

Just tried it again and it loaded. Possible your cache had to be written so it was slow for the first visitor.

The page is not loading for me. Anyone else have this problem ?

I'm looking for a definition of a "directory relay"... does it mean it i somehow optimized to deliver historical events? Or Metadata (kind 0) events?

#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?

Nostr is the birth of an open internet standard.

nostr:npub1yzvxlwp7wawed5vgefwfmugvumtp8c8t0etk3g8sky4n0ndvyxesnxrf8q Ok, I think I got it fixed for now. Somehow my browser was in some kind of state where it was not fully logged in, like it was partially logged in? I think I fixed it by clearing the browser storage for yakihonne.com ....

nostr:npub1yzvxlwp7wawed5vgefwfmugvumtp8c8t0etk3g8sky4n0ndvyxesnxrf8q Some challenges today. When creating a new user, I am able to post notes from nostr:npub1yzvxlwp7wawed5vgefwfmugvumtp8c8t0etk3g8sky4n0ndvyxesnxrf8q ... and those notes DO show up primal.net.... and I am able to edit my profile with Primal and Nostr Profile Manager.... however....

1. I am not able to edit my profile from Yakihonne

2. Notes that I post do not show up on Yakihonne

I am going to try to clear my browser cache and see what happens