Skip to content

Commit 32dcec2

Browse files
committed
rpc: update RPC help of createpsbt
Update the example wherein the PSBT sends bitcoin to an address instead of creating an OP_RETURN output. Also, update the RPC description to reflect the fact that the created transaction is unsigned.
1 parent 931117a commit 32dcec2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/rpc/rawtransaction.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,13 +1550,15 @@ static RPCHelpMan createpsbt()
15501550
{
15511551
return RPCHelpMan{"createpsbt",
15521552
"\nCreates a transaction in the Partially Signed Transaction format.\n"
1553-
"Implements the Creator role.\n",
1553+
"Implements the Creator role.\n"
1554+
"Note that the transaction's inputs are not signed, and\n"
1555+
"it is not stored in the wallet or transmitted to the network.\n",
15541556
CreateTxDoc(),
15551557
RPCResult{
15561558
RPCResult::Type::STR, "", "The resulting raw transaction (base64-encoded string)"
15571559
},
15581560
RPCExamples{
1559-
HelpExampleCli("createpsbt", "\"[{\\\"txid\\\":\\\"myid\\\",\\\"vout\\\":0}]\" \"[{\\\"data\\\":\\\"00010203\\\"}]\"")
1561+
HelpExampleCli("createpsbt", "\"[{\\\"txid\\\":\\\"myid\\\",\\\"vout\\\":0}]\" \"[{\\\"address\\\":0.01}]\"")
15601562
},
15611563
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
15621564
{

0 commit comments

Comments
 (0)