Skip to content

Commit 124e75a

Browse files
committed
Merge bitcoin#26010: RPC: fix sendall docs
5182940 RPC: fix sendall docs (Anthony Towns) Pull request description: Updates the documentation for the "inputs" entry in the "options" parameter of the sendall RPC to match the documentation for createrawtransaction. ACKs for top commit: achow101: ACK 5182940 Xekyo: ACK 5182940 Tree-SHA512: fe78e17b2f36190939b645d7f4653d025bbac110e4a7285b49e7f1da27adac8c4d03fd5b770e3a74351066b1ab87fde36fc796f42b03897e4e2ebef4b6b6081c
2 parents 447f50e + 5182940 commit 124e75a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/wallet/rpc/spend.cpp

+8-4
Original file line numberDiff line numberDiff line change
@@ -1264,11 +1264,15 @@ RPCHelpMan sendall()
12641264
{"include_watching", RPCArg::Type::BOOL, RPCArg::DefaultHint{"true for watch-only wallets, otherwise false"}, "Also select inputs which are watch-only.\n"
12651265
"Only solvable inputs can be used. Watch-only destinations are solvable if the public key and/or output script was imported,\n"
12661266
"e.g. with 'importpubkey' or 'importmulti' with the 'pubkeys' or 'desc' field."},
1267-
{"inputs", RPCArg::Type::ARR, RPCArg::Default{UniValue::VARR}, "Use exactly the specified inputs to build the transaction. Specifying inputs is incompatible with send_max. A JSON array of JSON objects",
1267+
{"inputs", RPCArg::Type::ARR, RPCArg::Default{UniValue::VARR}, "Use exactly the specified inputs to build the transaction. Specifying inputs is incompatible with send_max.",
12681268
{
1269-
{"txid", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The transaction id"},
1270-
{"vout", RPCArg::Type::NUM, RPCArg::Optional::NO, "The output number"},
1271-
{"sequence", RPCArg::Type::NUM, RPCArg::Optional::NO, "The sequence number"},
1269+
{"", RPCArg::Type::OBJ, RPCArg::Optional::OMITTED, "",
1270+
{
1271+
{"txid", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The transaction id"},
1272+
{"vout", RPCArg::Type::NUM, RPCArg::Optional::NO, "The output number"},
1273+
{"sequence", RPCArg::Type::NUM, RPCArg::DefaultHint{"depends on the value of the 'replaceable' and 'locktime' arguments"}, "The sequence number"},
1274+
},
1275+
},
12721276
},
12731277
},
12741278
{"locktime", RPCArg::Type::NUM, RPCArg::Default{0}, "Raw locktime. Non-0 value also locktime-activates inputs"},

0 commit comments

Comments
 (0)