As per nip-01, kinds from 30k to 40k are "parameterized replaceable" which means that relays will only keep the last one with equal pubkey, kind and d-tag.

So if you send an event {tags:["d", "bla"],kind: 31000, content:"bla"} and then you send {tags:["d", "bla"],kind: 31000, content:"foo"}, a relay supporting this standard might have deleted the first event but more importantly, if you query for {kinds:[31000],authors:[your_npub_hex],"#d":"bla"}, you should only get the last one.

Reply to this note

Please Login to reply.

Discussion

thank you. that's what I thought but just had some issue wrapping my around it without an example.

NIP-51 uses parameterized replaceable events for lists, which allows you to add/remove items on the list by replacing the old event with a new event. It’s the “same list” by virtue of the fact that the author, list name, and event kind are unchanged.