Skip to content

Commit 79aeed8

Browse files
committed
Merge #16397: doc: Clarify includeWatching for fundrawtransaction
8003104 Clarify includeWatching for fundrawtransaction (Steven Roose) Pull request description: Might be sufficient to solve bitcoin/bitcoin#16396, bitcoin/bitcoin#7879 and bitcoin/bitcoin#14405. ACKs for top commit: Sjors: ACK 8003104. This will always be confusing, but at least it gives a bunch more clues for the user to google. Tree-SHA512: 9b8002c259c50f93d89fc5574105aae6152858d8d45c07b4c3d5b7023adafe73c7a98a290874ff3fbbb7dfad2ac1bdf4acb8769a2a1c14e38484922f44e84e54
2 parents b658ca7 + 8003104 commit 79aeed8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3135,7 +3135,9 @@ static UniValue fundrawtransaction(const JSONRPCRequest& request)
31353135
{"changeAddress", RPCArg::Type::STR, /* default */ "pool address", "The bitcoin address to receive the change"},
31363136
{"changePosition", RPCArg::Type::NUM, /* default */ "random", "The index of the change output"},
31373137
{"change_type", RPCArg::Type::STR, /* default */ "set by -changetype", "The output type to use. Only valid if changeAddress is not specified. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\"."},
3138-
{"includeWatching", RPCArg::Type::BOOL, /* default */ "true for watch-only wallets, otherwise false", "Also select inputs which are watch only"},
3138+
{"includeWatching", RPCArg::Type::BOOL, /* default */ "true for watch-only wallets, otherwise false", "Also select inputs which are watch only.\n"
3139+
"Only solvable inputs can be used. Watch-only destinations are solvable if the public key and/or output script was imported,\n"
3140+
"e.g. with 'importpubkey' or 'importmulti' with the 'pubkeys' or 'desc' field."},
31393141
{"lockUnspents", RPCArg::Type::BOOL, /* default */ "false", "Lock selected unspent outputs"},
31403142
{"feeRate", RPCArg::Type::AMOUNT, /* default */ "not set: makes wallet determine the fee", "Set a specific fee rate in " + CURRENCY_UNIT + "/kB"},
31413143
{"subtractFeeFromOutputs", RPCArg::Type::ARR, /* default */ "empty array", "A json array of integers.\n"

0 commit comments

Comments
 (0)