← Todos los NIPs

NIP-18

Reposts

BorradorEventos

Comparte el evento de otra persona con tus seguidores: el kind 6 hace repost de una nota de texto, el kind 16 de cualquier otra cosa, y los tags q convierten una mención en una publicación con cita.

De un vistazo

Estado
En uso, pero todavía puede cambiar.
Kinds
Tags
  • q
Último cambio
3 dic 2025

Pruébalo

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.

Qué construir
Ejemplos
Válido 1 nota

Aún sin firmar · Solo claves de demo. Las claves secretas de estos personajes son públicas a propósito.

Formulario
31 dic 2024, 23:05 UTC

Contenido

El JSON serializado de la nota compartida (o vacío, no recomendado).

Tags

  1. e Obligatorio

    El evento compartido.

  2. p Recomendado

    El autor original.

Añadir tag

Cómo funciona este NIP

Paso 1 de 4

Incrusta el original

El content de un repost kind 6 es el JSON completo de la nota compartida, para que los lectores puedan mostrarla sin buscarla. Puede estar vacío (obligatorio para eventos protegidos de NIP-70).

En el curso

Ningún capítulo del curso cubre este NIP todavía. El editor de arriba es la forma más rápida de empezar.

Se basa en

Ver también

Especificación

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

Leer la especificación285 palabras, citadas del repositorio en el commit 0046368.

A repost is a kind 6 event that is used to signal to followers that a kind 1 text note is worth reading.

The content of a repost event is the stringified JSON of the reposted note. It MAY also be empty, but that is not recommended. Reposts of NIP-70-protected events SHOULD always have an empty content.

The repost event MUST include an e tag with the id of the note that is being reposted. That tag MUST include a relay URL as its third entry to indicate where it can be fetched.

The repost SHOULD include a p tag with the pubkey of the event being reposted.

Quote Reposts

Mentions to NIP-21 entities like nevent, note and naddr on any event must be converted into q tags. The q tag ensures quote reposts are not pulled and included as replies in threads. It also allows you to easily pull and count all of the quotes for a post. The syntax follows

["q", "<event-id> or <event-address>", "<relay-url>", "<pubkey-if-a-regular-event>"]

Generic Reposts

Since kind 6 reposts are reserved for kind 1 contents, we use kind 16 as a "generic repost", that can include any kind of event inside other than kind 1.

kind 16 reposts SHOULD contain a "k" tag with the stringified kind number of the reposted event as its value.

When reposting a replaceable event, the repost SHOULD include an "a" tag with the event coordinate (kind:pubkey:d-tag) of the reposted event.

If the "a" tag is not present, it indicates that a specific version of a replaceable event is being reposted, in which case the content field must contain the full JSON string of the reposted event.