Paso 1 de 5
Fija un objetivo
Un evento de kind 9041 dice para qué recaudas dinero (content) y cuánto (amount, en millisats).
NIP-75
BorradorEventos
Una meta de recaudación como evento de kind 9041: una cantidad objetivo y los relays donde se cuentan los zaps. Haz zap a la meta para contribuir y mira cómo se llena la barra de progreso.
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.
Cómo se conectan las partes: Recaudar dinero
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
Un evento de kind 9041 dice para qué recaudas dinero (content) y cuánto (amount, en millisats).
Ningún capítulo del curso cubre este NIP todavía. El editor de arriba es la forma más rápida de empezar.
Las contribuciones son zaps NIP-57; los tags zap las reparten.
Los artículos de formato largo pueden vincular una meta.
Las transmisiones en vivo pueden vincular una meta.
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 defines an event for creating fundraising goals. Users can contribute funds towards the goal by zapping the goal event.
A kind:9041 event is used.
The .content contains a human-readable description of the goal.
The following tags are defined as REQUIRED.
amount - target amount in milisats.relays - a list of relays the zaps to this goal will be sent to and tallied from.Example event:
{
"kind": 9041,
"tags": [
["relays", "wss://alicerelay.example.com", "wss://bobrelay.example.com", /*...*/],
["amount", "210000"],
],
"content": "Nostrasia travel expenses",
// other fields...
}
The following tags are OPTIONAL.
closed_at - timestamp for determining which zaps are included in the tally. Zap receipts published after the closed_at timestamp SHOULD NOT count towards the goal progress.image - an image for the goalsummary - a brief description{
"kind": 9041,
"tags": [
["relays", "wss://alicerelay.example.com", "wss://bobrelay.example.com", /*...*/],
["amount", "210000"],
["closed_at", "<unix timestamp in seconds>"],
["image", "<image URL>"],
["summary", "<description of the goal>"],
],
"content": "Nostrasia travel expenses",
// other fields...
}
The goal MAY include an r or a tag linking to a URL or addressable event.
The goal MAY include multiple beneficiary pubkeys by specifying zap tags.
Addressable events can link to a goal by using a goal tag specifying the event id and an optional relay hint.
{
"kind": 3xxxx,
"tags": [
["goal", "<event id>", "<Relay URL (optional)>"],
// rest of tags...
],
// other fields...
}
Clients MAY display funding goals on user profiles.
When zapping a goal event, clients MUST include the relays in the relays tag of the goal event in the zap request relays tag.
When zapping an addressable event with a goal tag, clients SHOULD tag the goal event id in the e tag of the zap request.