From fab6a21a779460f696f11169ddf343b437327592 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Mon, 26 Jun 2023 10:37:48 +0900 Subject: [PATCH] fixed typos --- 47.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/47.md b/47.md index c884b97..b6a4f2b 100644 --- a/47.md +++ b/47.md @@ -33,7 +33,7 @@ There are three event kinds: - `NIP-47 response`: 23195 The info event should be a replaceable event that is published by the **wallet service** on the relay to indicate which commands it supports. The content should be -a plaintext string with the supported commands, space-seperated, eg. `pay_invoice get_balance`. Only the `pay_invoice` command is described in this NIP, but other commands might be defined in different NIPs. +a plaintext string with the supported commands, space-separated, eg. `pay_invoice get_balance`. Only the `pay_invoice` command is described in this NIP, but other commands might be defined in different NIPs. Both the request and response events SHOULD contain one `p` tag, containing the public key of the **wallet service** if this is a request, and the public key of the **user** if this is a response. The response event SHOULD contain an `e` tag with the id of the request event it is responding to. @@ -64,8 +64,8 @@ Response: ``` The `result_type` field MUST contain the name of the method that this event is responding to. -The `error` field MUST contain a `message` field with a human readable error message and a `code` field with the error code if the command was not succesful. -If the command was succesful, the `error` field must be null. +The `error` field MUST contain a `message` field with a human readable error message and a `code` field with the error code if the command was not successful. +If the command was successful, the `error` field must be null. ### Error codes - `RATE_LIMITED`: The client is sending commands too fast. It should retry in a few seconds.