From 05b901a731342a749b3c63a4cc181a72dcf96cd7 Mon Sep 17 00:00:00 2001 From: Josep M Sobrepere Date: Fri, 2 Feb 2024 14:29:11 +0100 Subject: [PATCH 1/3] fix: `rpc_methods` return value --- src/api/rpc_methods.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/rpc_methods.md b/src/api/rpc_methods.md index 7d0f6f10efc7..b7abe9dc6d2d 100644 --- a/src/api/rpc_methods.md +++ b/src/api/rpc_methods.md @@ -2,4 +2,4 @@ **Parameters**: *none* -**Return value**: Array of strings indicating the names of all the JSON-RPC functions supported by the JSON-RPC server, including this one. +**Return value**: A plain JavaScript object with a single entry named "`methods`". This entry is an array of strings indicating the names of all the JSON-RPC functions supported by the JSON-RPC server, including this one. From 50dfb79c00e196cbf5f42418bb5d13b43c1c87f4 Mon Sep 17 00:00:00 2001 From: Josep M Sobrepere Date: Fri, 2 Feb 2024 16:11:59 +0100 Subject: [PATCH 2/3] fix: `rpc_methods` return value (II) --- src/api/rpc_methods.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/api/rpc_methods.md b/src/api/rpc_methods.md index b7abe9dc6d2d..e0924b79eb23 100644 --- a/src/api/rpc_methods.md +++ b/src/api/rpc_methods.md @@ -2,4 +2,16 @@ **Parameters**: *none* -**Return value**: A plain JavaScript object with a single entry named "`methods`". This entry is an array of strings indicating the names of all the JSON-RPC functions supported by the JSON-RPC server, including this one. +**Return value**: A JSON object. + +The JSON object returned by this function has the following format: + +``` +{ + "methods": [...] +} +``` + +Where: + +- `methods` contains an array of strings indicating the names of all the JSON-RPC functions supported by the JSON-RPC server, including this one. From d8f40a6ba06e0ec00ff59789c57d79a4e41da853 Mon Sep 17 00:00:00 2001 From: Josep M Sobrepere Date: Mon, 5 Feb 2024 09:39:50 +0100 Subject: [PATCH 3/3] Update src/api/rpc_methods.md Co-authored-by: Pierre Krieger --- src/api/rpc_methods.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/rpc_methods.md b/src/api/rpc_methods.md index e0924b79eb23..a5712c3bac0f 100644 --- a/src/api/rpc_methods.md +++ b/src/api/rpc_methods.md @@ -14,4 +14,4 @@ The JSON object returned by this function has the following format: Where: -- `methods` contains an array of strings indicating the names of all the JSON-RPC functions supported by the JSON-RPC server, including this one. +- `methods` contains an array of strings indicating the names of all the JSON-RPC functions supported by the JSON-RPC server, including `rpc_methods` itself.