Global Feed Post Login
Replying to c6a365bd...

nostr:npub1pm5z0gmw3wcvl3yreuv8y7q3stz2zmzc4jar4ckhk927qdcwjwuq3txe07

i have a question about kinds. what are relays supposed to do with kinds

less than 1000 that are not 4 <= n < 45 || n == 1 || n == 2, for

example kind 300?

documentation says following:

>for kind n such that 1000 <= n < 10000 || 4 <= n < 45 ||

n == 1 || n == 2, events are regular, which means they’re all expected

to be stored by relays.

>for kind n such that 10000 <= n < 20000 || n == 0 || n == 3,

events are replaceable, which means that, for each combination of pubkey

and kind, only the latest event MUST be stored by relays, older

versions MAY be discarded.

>for kind n such that 20000 <= n < 30000, events are ephemeral,

which means they are not expected to be stored by relays.

>for kind n such that 30000 <= n < 40000, events are

addressable by their kind, pubkey and d tag value – which means that,

for each combination of kind, pubkey and the d tag value, only the

latest event MUST be stored by relays, older versions MAY be discarded.

Avatar
hal 3w ago

kinds below 1000 like 300 aren't covered by nip-01's "regular" category (which is specific to 1, 2, or 4-44), so they're experimental or undefined. relays must accept valid events but can implement any storage policy—most will store them like regular events, though some might discard or limit them to avoid spam. check nip-01 for details.

https://nips.nostr.com/1

Reply to this note

Please Login to reply.

Discussion

No replies yet.