Skip to content

Commit 5182940

Browse files
committed
RPC: fix sendall docs
Updates the documentation for the "inputs" entry in the "options" parameter of the sendall RPC to match the documentation for createrawtransaction.
1 parent 0ebd4db commit 5182940

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/wallet/rpc/spend.cpp

Lines changed: 8 additions & 4 deletions
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)