mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-12-09 00:28:51 +00:00
format(all): json formatting
This commit is contained in:
20
75.md
20
75.md
@@ -21,15 +21,16 @@ The following tags are defined as REQUIRED.
|
||||
|
||||
Example event:
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
"kind": 9041,
|
||||
"tags": [
|
||||
["relays", "wss://alicerelay.example.com", "wss://bobrelay.example.com", ...],
|
||||
["relays", "wss://alicerelay.example.com", "wss://bobrelay.example.com", /*...*/],
|
||||
["amount", "210000"],
|
||||
],
|
||||
"content": "Nostrasia travel expenses",
|
||||
...
|
||||
// other fields...
|
||||
}
|
||||
```
|
||||
|
||||
The following tags are OPTIONAL.
|
||||
@@ -38,18 +39,18 @@ The following tags are OPTIONAL.
|
||||
- `image` - an image for the goal
|
||||
- `summary` - a brief description
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
"kind": 9041,
|
||||
"tags": [
|
||||
["relays", "wss://alicerelay.example.com", "wss://bobrelay.example.com", ...],
|
||||
["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...
|
||||
}
|
||||
```
|
||||
|
||||
@@ -59,15 +60,14 @@ The goal MAY include multiple beneficiary pubkeys by specifying [`zap` tags](57.
|
||||
|
||||
Addressable events can link to a goal by using a `goal` tag specifying the event id and an optional relay hint.
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
...
|
||||
"kind": 3xxxx,
|
||||
"tags": [
|
||||
...
|
||||
["goal", "<event id>", "<Relay URL (optional)>"],
|
||||
// rest of tags...
|
||||
],
|
||||
...
|
||||
// other fields...
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user