diff options
| -rw-r--r-- | 11.md | 53 |
1 files changed, 27 insertions, 26 deletions
| @@ -69,18 +69,18 @@ are rejected or fail immediately. | |||
| 69 | ```json | 69 | ```json |
| 70 | { | 70 | { |
| 71 | ... | 71 | ... |
| 72 | limitation: { | 72 | "limitation": { |
| 73 | max_message_length: 16384, | 73 | "max_message_length": 16384, |
| 74 | max_subscriptions: 20, | 74 | "max_subscriptions": 20, |
| 75 | max_filters: 100, | 75 | "max_filters": 100, |
| 76 | max_limit: 5000, | 76 | "max_limit": 5000, |
| 77 | max_subid_length: 100, | 77 | "max_subid_length": 100, |
| 78 | min_prefix: 4, | 78 | "min_prefix": 4, |
| 79 | max_event_tags: 100, | 79 | "max_event_tags": 100, |
| 80 | max_content_length: 8196, | 80 | "max_content_length": 8196, |
| 81 | min_pow_difficulty: 30, | 81 | "min_pow_difficulty": 30, |
| 82 | auth_required: true, | 82 | "auth_required": true, |
| 83 | payment_required: true, | 83 | "payment_required": true, |
| 84 | } | 84 | } |
| 85 | ... | 85 | ... |
| 86 | } | 86 | } |
| @@ -141,11 +141,11 @@ all, and preferably an error will be provided when those are received. | |||
| 141 | ```json | 141 | ```json |
| 142 | { | 142 | { |
| 143 | ... | 143 | ... |
| 144 | retention: [ | 144 | "retention": [ |
| 145 | { kinds: [0, 1, [5, 7], [40, 49]], time: 3600 }, | 145 | { "kinds": [0, 1, [5, 7], [40, 49]], "time": 3600 }, |
| 146 | { kinds: [[40000, 49999], time: 100 }, | 146 | { "kinds": [[40000, 49999]], "time": 100 }, |
| 147 | { kinds: [[30000, 39999], count: 1000 }, | 147 | { "kinds": [[30000, 39999]], "count": 1000 }, |
| 148 | { time: 3600, count: 10000 } | 148 | { "time": 3600, "count": 10000 } |
| 149 | ] | 149 | ] |
| 150 | ... | 150 | ... |
| 151 | } | 151 | } |
| @@ -185,7 +185,7 @@ flexibility is up to the client software. | |||
| 185 | ```json | 185 | ```json |
| 186 | { | 186 | { |
| 187 | ... | 187 | ... |
| 188 | relay_countries: [ 'CA', 'US' ], | 188 | "relay_countries": [ "CA", "US" ], |
| 189 | ... | 189 | ... |
| 190 | } | 190 | } |
| 191 | ``` | 191 | ``` |
| @@ -208,9 +208,9 @@ To support this goal, relays MAY specify some of the following values. | |||
| 208 | ```json | 208 | ```json |
| 209 | { | 209 | { |
| 210 | ... | 210 | ... |
| 211 | language_tags: [ 'en', 'en-419' ], | 211 | "language_tags": [ "en", "en-419" ], |
| 212 | tags: [ 'sfw-only', 'bitcoin-only', 'anime' ], | 212 | "tags": [ "sfw-only", "bitcoin-only", "anime" ], |
| 213 | posting_policy: 'https://example.com/posting-policy.html', | 213 | "posting_policy": "https://example.com/posting-policy.html", |
| 214 | ... | 214 | ... |
| 215 | } | 215 | } |
| 216 | ``` | 216 | ``` |
| @@ -245,11 +245,12 @@ Relays that require payments may want to expose their fee schedules. | |||
| 245 | ```json | 245 | ```json |
| 246 | { | 246 | { |
| 247 | ... | 247 | ... |
| 248 | payments_url: "https://my-relay/payments", | 248 | "payments_url": "https://my-relay/payments", |
| 249 | fees: { | 249 | "fees": { |
| 250 | "admission": [{ amount: 1000000, unit: 'msats' }], | 250 | "admission": [{ "amount": 1000000, "unit": "msats" }], |
| 251 | "subscription": [{ amount: 5000000, unit: 'msats', period: 2592000 }], | 251 | "subscription": [{ "amount": 5000000, "unit": "msats", "period": 2592000 }], |
| 252 | "publication": [{ kinds: [4], amount: 100, unit: 'msats' }], | 252 | "publication": [{ "kinds": [4], "amount": 100, "unit": "msats" }], |
| 253 | }, | 253 | }, |
| 254 | ... | 254 | ... |
| 255 | } | 255 | } |
| 256 | ``` | ||