diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2023-11-18 09:13:12 -0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2023-11-18 09:13:12 -0300 |
| commit | 5dcfe85306434f21ecb1e7a47edd92b2e3e64f9a (patch) | |
| tree | 4fff8694238b3ae5e692a8480869ad1266b95be4 /75.md | |
| parent | b0df71824f9967130b54150b64cc70fa94bffec2 (diff) | |
reformat a bunch of json things and small nitpicks.
Diffstat (limited to '75.md')
| -rw-r--r-- | 75.md | 17 |
1 files changed, 11 insertions, 6 deletions
| @@ -1,6 +1,8 @@ | |||
| 1 | # NIP-75 | 1 | NIP-75 |
| 2 | ====== | ||
| 2 | 3 | ||
| 3 | ## Zap Goals | 4 | Zap Goals |
| 5 | --------- | ||
| 4 | 6 | ||
| 5 | `draft` `optional` | 7 | `draft` `optional` |
| 6 | 8 | ||
| @@ -27,7 +29,7 @@ Example event: | |||
| 27 | ["amount", "210000"], | 29 | ["amount", "210000"], |
| 28 | ], | 30 | ], |
| 29 | "content": "Nostrasia travel expenses", | 31 | "content": "Nostrasia travel expenses", |
| 30 | ...other fields | 32 | ... |
| 31 | ``` | 33 | ``` |
| 32 | 34 | ||
| 33 | The following tags are OPTIONAL. | 35 | The following tags are OPTIONAL. |
| @@ -43,7 +45,8 @@ The following tags are OPTIONAL. | |||
| 43 | ["closed_at", "<unix timestamp in seconds>"], | 45 | ["closed_at", "<unix timestamp in seconds>"], |
| 44 | ], | 46 | ], |
| 45 | "content": "Nostrasia travel expenses", | 47 | "content": "Nostrasia travel expenses", |
| 46 | ...other fields | 48 | ... |
| 49 | } | ||
| 47 | ``` | 50 | ``` |
| 48 | 51 | ||
| 49 | The goal MAY include an `r` or `a` tag linking to a URL or parameterized replaceable event. | 52 | The goal MAY include an `r` or `a` tag linking to a URL or parameterized replaceable event. |
| @@ -54,12 +57,14 @@ Parameterized replaceable events can link to a goal by using a `goal` tag specif | |||
| 54 | 57 | ||
| 55 | ```json | 58 | ```json |
| 56 | { | 59 | { |
| 57 | "kind": 3XXXX, | 60 | ... |
| 61 | "kind": 3xxxx, | ||
| 58 | "tags": [ | 62 | "tags": [ |
| 59 | ... | 63 | ... |
| 60 | ["goal", "<event id>", "<Relay URL (optional)>"], | 64 | ["goal", "<event id>", "<Relay URL (optional)>"], |
| 61 | ], | 65 | ], |
| 62 | ...other fields | 66 | ... |
| 67 | } | ||
| 63 | ``` | 68 | ``` |
| 64 | 69 | ||
| 65 | ## Client behavior | 70 | ## Client behavior |