diff options
| author | kehiy <kehiiiiya@gmail.com> | 2024-09-03 20:41:31 +0330 |
|---|---|---|
| committer | kehiy <kehiiiiya@gmail.com> | 2024-09-03 20:41:31 +0330 |
| commit | e6552476aa2e5ca7256be572a9aa226ec8a022ee (patch) | |
| tree | 46f14902bd2bfb85e5f3369ece456c46b697b1a2 /58.md | |
| parent | b4a2561df7325b8624bc5ffad154ec946ade2f1e (diff) | |
format(all): json formatting
Diffstat (limited to '58.md')
| -rw-r--r-- | 58.md | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -74,7 +74,7 @@ Clients SHOULD attempt to render the most appropriate badge thumbnail according | |||
| 74 | 74 | ||
| 75 | ### Example of a Badge Definition event | 75 | ### Example of a Badge Definition event |
| 76 | 76 | ||
| 77 | ```json | 77 | ```jsonc |
| 78 | { | 78 | { |
| 79 | "pubkey": "alice", | 79 | "pubkey": "alice", |
| 80 | "kind": 30009, | 80 | "kind": 30009, |
| @@ -85,13 +85,13 @@ Clients SHOULD attempt to render the most appropriate badge thumbnail according | |||
| 85 | ["image", "https://nostr.academy/awards/bravery.png", "1024x1024"], | 85 | ["image", "https://nostr.academy/awards/bravery.png", "1024x1024"], |
| 86 | ["thumb", "https://nostr.academy/awards/bravery_256x256.png", "256x256"] | 86 | ["thumb", "https://nostr.academy/awards/bravery_256x256.png", "256x256"] |
| 87 | ], | 87 | ], |
| 88 | ... | 88 | // other fields... |
| 89 | } | 89 | } |
| 90 | ``` | 90 | ``` |
| 91 | 91 | ||
| 92 | ### Example of Badge Award event | 92 | ### Example of Badge Award event |
| 93 | 93 | ||
| 94 | ```json | 94 | ```jsonc |
| 95 | { | 95 | { |
| 96 | "id": "<badge award event id>", | 96 | "id": "<badge award event id>", |
| 97 | "kind": 8, | 97 | "kind": 8, |
| @@ -101,14 +101,14 @@ Clients SHOULD attempt to render the most appropriate badge thumbnail according | |||
| 101 | ["p", "bob", "wss://relay"], | 101 | ["p", "bob", "wss://relay"], |
| 102 | ["p", "charlie", "wss://relay"] | 102 | ["p", "charlie", "wss://relay"] |
| 103 | ], | 103 | ], |
| 104 | ... | 104 | // other fields... |
| 105 | } | 105 | } |
| 106 | ``` | 106 | ``` |
| 107 | 107 | ||
| 108 | ### Example of a Profile Badges event | 108 | ### Example of a Profile Badges event |
| 109 | 109 | ||
| 110 | Honorable Bob The Brave: | 110 | Honorable Bob The Brave: |
| 111 | ```json | 111 | ```jsonc |
| 112 | { | 112 | { |
| 113 | "kind": 30008, | 113 | "kind": 30008, |
| 114 | "pubkey": "bob", | 114 | "pubkey": "bob", |
| @@ -119,6 +119,6 @@ Honorable Bob The Brave: | |||
| 119 | ["a", "30009:alice:honor"], | 119 | ["a", "30009:alice:honor"], |
| 120 | ["e", "<honor badge award event id>", "wss://nostr.academy"] | 120 | ["e", "<honor badge award event id>", "wss://nostr.academy"] |
| 121 | ], | 121 | ], |
| 122 | ... | 122 | // other fields... |
| 123 | } | 123 | } |
| 124 | ``` | 124 | ``` |