upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/75.md
diff options
context:
space:
mode:
authorkehiy <kehiiiiya@gmail.com>2024-09-03 20:41:31 +0330
committerkehiy <kehiiiiya@gmail.com>2024-09-03 20:41:31 +0330
commite6552476aa2e5ca7256be572a9aa226ec8a022ee (patch)
tree46f14902bd2bfb85e5f3369ece456c46b697b1a2 /75.md
parentb4a2561df7325b8624bc5ffad154ec946ade2f1e (diff)
format(all): json formatting
Diffstat (limited to '75.md')
-rw-r--r--75.md20
1 files changed, 10 insertions, 10 deletions
diff --git a/75.md b/75.md
index a6f2bff..885c391 100644
--- a/75.md
+++ b/75.md
@@ -21,15 +21,16 @@ The following tags are defined as REQUIRED.
21 21
22Example event: 22Example event:
23 23
24```json 24```jsonc
25{ 25{
26 "kind": 9041, 26 "kind": 9041,
27 "tags": [ 27 "tags": [
28 ["relays", "wss://alicerelay.example.com", "wss://bobrelay.example.com", ...], 28 ["relays", "wss://alicerelay.example.com", "wss://bobrelay.example.com", /*...*/],
29 ["amount", "210000"], 29 ["amount", "210000"],
30 ], 30 ],
31 "content": "Nostrasia travel expenses", 31 "content": "Nostrasia travel expenses",
32 ... 32 // other fields...
33}
33``` 34```
34 35
35The following tags are OPTIONAL. 36The following tags are OPTIONAL.
@@ -38,18 +39,18 @@ The following tags are OPTIONAL.
38- `image` - an image for the goal 39- `image` - an image for the goal
39- `summary` - a brief description 40- `summary` - a brief description
40 41
41```json 42```jsonc
42{ 43{
43 "kind": 9041, 44 "kind": 9041,
44 "tags": [ 45 "tags": [
45 ["relays", "wss://alicerelay.example.com", "wss://bobrelay.example.com", ...], 46 ["relays", "wss://alicerelay.example.com", "wss://bobrelay.example.com", /*...*/],
46 ["amount", "210000"], 47 ["amount", "210000"],
47 ["closed_at", "<unix timestamp in seconds>"], 48 ["closed_at", "<unix timestamp in seconds>"],
48 ["image", "<image URL>"], 49 ["image", "<image URL>"],
49 ["summary", "<description of the goal>"], 50 ["summary", "<description of the goal>"],
50 ], 51 ],
51 "content": "Nostrasia travel expenses", 52 "content": "Nostrasia travel expenses",
52 ... 53 // other fields...
53} 54}
54``` 55```
55 56
@@ -59,15 +60,14 @@ The goal MAY include multiple beneficiary pubkeys by specifying [`zap` tags](57.
59 60
60Addressable events can link to a goal by using a `goal` tag specifying the event id and an optional relay hint. 61Addressable events can link to a goal by using a `goal` tag specifying the event id and an optional relay hint.
61 62
62```json 63```jsonc
63{ 64{
64 ...
65 "kind": 3xxxx, 65 "kind": 3xxxx,
66 "tags": [ 66 "tags": [
67 ...
68 ["goal", "<event id>", "<Relay URL (optional)>"], 67 ["goal", "<event id>", "<Relay URL (optional)>"],
68 // rest of tags...
69 ], 69 ],
70 ... 70 // other fields...
71} 71}
72``` 72```
73 73