Skip to content

Commit

Permalink
Merge pull request #1827 from MarnixCroes/getnewaddress
Browse files Browse the repository at this point in the history
RPC; update getnewaddress add taproot
  • Loading branch information
MarnixCroes authored Sep 20, 2024
2 parents 8a1393d + e7a2f12 commit 2f277c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/using-wasabi/RPC.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:

Expand Down

0 comments on commit 2f277c5

Please sign in to comment.