diff options
| -rw-r--r-- | 46.md | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -153,13 +153,13 @@ The `content` field is a JSON-RPC-like message that is [NIP-04](https://github.c | |||
| 153 | { | 153 | { |
| 154 | "id": <request_id>, | 154 | "id": <request_id>, |
| 155 | "result": <results_string>, | 155 | "result": <results_string>, |
| 156 | "error": <error_string> | 156 | "error": <optional_error_string> |
| 157 | } | 157 | } |
| 158 | ``` | 158 | ``` |
| 159 | 159 | ||
| 160 | - `id` is the request ID that this response is for. | 160 | - `id` is the request ID that this response is for. |
| 161 | - `results` is a string of the result of the call (this can be either a string or a JSON stringified object) | 161 | - `results` is a string of the result of the call (this can be either a string or a JSON stringified object) |
| 162 | - `error` is an error in string form. | 162 | - `error`, _optionally_, it is an error in string form, if any. Its presence indicates an error with the request. |
| 163 | 163 | ||
| 164 | ### Auth Challenges | 164 | ### Auth Challenges |
| 165 | 165 | ||