Skip to content

Commit 92a4ed0

Browse files
doc: add tr() descriptor example to deriveaddresses
add a tr() descriptor example to the help deriveaddresses examples
1 parent d0b1f61 commit 92a4ed0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/rpc/output_script.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,11 @@ static RPCHelpMan deriveaddresses()
222222
return RPCHelpMan{"deriveaddresses",
223223
{"\nDerives one or more addresses corresponding to an output descriptor.\n"
224224
"Examples of output descriptors are:\n"
225-
" pkh(<pubkey>) P2PKH outputs for the given pubkey\n"
226-
" wpkh(<pubkey>) Native segwit P2PKH outputs for the given pubkey\n"
227-
" sh(multi(<n>,<pubkey>,<pubkey>,...)) P2SH-multisig outputs for the given threshold and pubkeys\n"
228-
" raw(<hex script>) Outputs whose scriptPubKey equals the specified hex scripts\n"
225+
" pkh(<pubkey>) P2PKH outputs for the given pubkey\n"
226+
" wpkh(<pubkey>) Native segwit P2PKH outputs for the given pubkey\n"
227+
" sh(multi(<n>,<pubkey>,<pubkey>,...)) P2SH-multisig outputs for the given threshold and pubkeys\n"
228+
" raw(<hex script>) Outputs whose scriptPubKey equals the specified hex scripts\n"
229+
" tr(<pubkey>,multi_a(<n>,<pubkey>,<pubkey>,...)) P2TR-multisig outputs for the given threshold and pubkeys\n"
229230
"\nIn the above, <pubkey> either refers to a fixed public key in hexadecimal notation, or to an xpub/xprv optionally followed by one\n"
230231
"or more path elements separated by \"/\", where \"h\" represents a hardened child key.\n"
231232
"For more information on output descriptors, see the documentation in the doc/descriptors.md file.\n"},

0 commit comments

Comments
 (0)