From e7a2f1232c27ed8a0a8a4ef7242098a9158414d5 Mon Sep 17 00:00:00 2001 From: Marnix <93143998+MarnixCroes@users.noreply.github.com> Date: Fri, 20 Sep 2024 09:25:07 +0200 Subject: [PATCH] RPC; update getnewaddress add taproot --- docs/using-wasabi/RPC.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/using-wasabi/RPC.md b/docs/using-wasabi/RPC.md index aa16d1fd8..76ea54b21 100644 --- a/docs/using-wasabi/RPC.md +++ b/docs/using-wasabi/RPC.md @@ -448,7 +448,7 @@ In case there is no wallet open it will return: Creates an address and returns detailed information about it. ```bash -curl -s --data-binary '{"jsonrpc":"2.0","id":"1","method":"getnewaddress","params":["Daniel, Alice"]}' http://127.0.0.1:37128/WalletName | jq +curl -s --data-binary '{"jsonrpc":"2.0","id":"1","method":"getnewaddress","params":["Daniel, Alice", false]}' http://127.0.0.1:37128/WalletName | jq ``` ```json @@ -464,6 +464,7 @@ curl -s --data-binary '{"jsonrpc":"2.0","id":"1","method":"getnewaddress","param "id": "1" } ``` +The first parameter is the label(s), the second parameter is whether to generate a taproot address (the default is _false_, which returns a SegWit address). In case an empty label is provided: