#asknostr #NostrDevs how should a client properly encode an nevent to include the correct relay hints?

nostr:nevent1qqsqqf68yrta94nyg4msgegsckj0dt6pe5zr4a8swltp35kpe67rddgpr9mhxue69uhhwmm59e38y6t8dp6xymmvwshxuet59upzpz48pazrxy5a4km3xv9v38mzk56v4gsq48e7udy6pa99tyc885dxqvzqqqqqqy7ed50m

I know Coracle and Amethyst both provide nevents, so maybe nostr:nprofile1qqsf03c2gsmx5ef4c9zmxvlew04gdh7u94afnknp33qvv3c94kvwxgspz4mhxue69uhhyetvv9ujuerpd46hxtnfduhszrnhwden5te0dehhxtnvdakz7qgewaehxw309a5xyu3wvdhhyctrd3jjuum0vd5kzmp0er5gcs or nostr:nprofile1qqsyvrp9u6p0mfur9dfdru3d853tx9mdjuhkphxuxgfwmryja7zsvhqpzamhxue69uhhv6t5daezumn0wd68yvfwvdhk6tcpz9mhxue69uhkummnw3ezuamfdejj7qgwwaehxw309ahx7uewd3hkctcscpyug can provide some advice/best practice.

Reply to this note

Please Login to reply.

Discussion

We add the first 3 outbox relays for the author. If that is not available, then the first 3 random relays that sent the event to the app.

Thanks for the response! This seems to make good sense.

I do wonder, though, if preferring the author's outbox relays, if they have a 10002, would consistently be the right call. Do you check to ensure the note in question does exist on those relays before encoding them in the nevent?

Maybe go for, "If they have a 10002 and the note is confirmed to be found there, then encode the first three outbox relays. If they have no 10002 or the note cannot be found on those relays, then encode the first 3 random relays that sent the event to the app." Would that be a possibility?

Knots is climbing in silence to the top 3 of version specific dominance. (As per Clarkmoodys dashboard.