Paso 1 de 5
Un estado por tipo
kind 30315 es direccionable y el tag d es el tipo de estado, así que tienes un estado "general" actual y un estado "music". Publicar de nuevo lo reemplaza.
NIP-38
BorradorEventos
Comparte un estado en vivo junto a tu nombre, como lo que estás haciendo o la canción que suena, como un evento kind 30315 que puede caducar por sí solo.
Edita el formulario o el JSON: ambos se mantienen sincronizados, la insignia indica si el resultado es válido y, al tocar cualquier campo, se explica qué hace.
Aún sin firmar · Solo claves de demo. Las claves secretas de estos personajes son públicas a propósito.
Selecciona cualquier campo del formulario o del JSON para ver qué hace.
Paso 1 de 5
kind 30315 es direccionable y el tag d es el tipo de estado, así que tienes un estado "general" actual y un estado "music". Publicar de nuevo lo reemplaza.
Ningún capítulo del curso cubre este NIP todavía. El editor de arriba es la forma más rápida de empezar.
Los estados pueden caducar con tags expiration de NIP-40.
kind 30315 es un evento direccionable como se define en NIP-01.
El texto del estado puede contener emoji personalizados de NIP-30.
El texto de las especificaciones se cita en inglés del repositorio nostr-protocol/nips. Nuestras explicaciones y la interfaz están traducidas. Código fuente en GitHub en el commit 0046368
This NIP enables a way for users to share live statuses such as what music they are listening to, as well as what they are currently doing: work, play, out of office, etc.
A special event with kind:30315 "User Status" is defined as an optionally expiring addressable event, where the d tag represents the status type:
For example:
{
"kind": 30315,
"content": "Sign up for nostrasia!",
"tags": [
["d", "general"],
["r", "https://nostr.world"]
],
}
{
"kind": 30315,
"content": "Intergalatic - Beastie Boys",
"tags": [
["d", "music"],
["r", "spotify:search:Intergalatic%20-%20Beastie%20Boys"],
["expiration", "1692845589"]
],
}
Two common status types are defined: general and music. general represent general statuses: "Working", "Hiking", etc.
music status events are for live streaming what you are currently listening to. The expiry of the music status should be when the track will stop playing.
Any other status types can be used but they are not defined by this NIP.
The status MAY include an r, p, e or a tag linking to a URL, profile, note, or addressable event.
The content MAY include emoji(s), or NIP-30 custom emoji(s). If the content is an empty string then the client should clear the status.
Clients MAY display this next to the username on posts or profiles to provide live user status information.