@@ -2347,7 +2347,9 @@ UniValue listunspent(const UniValue& params, bool fHelp)
23472347 " \" account\" : \" account\" , (string) DEPRECATED. The associated account, or \"\" for the default account\n "
23482348 " \" scriptPubKey\" : \" key\" , (string) the script key\n "
23492349 " \" amount\" : x.xxx, (numeric) the transaction amount in " + CURRENCY_UNIT + " \n "
2350- " \" confirmations\" : n (numeric) The number of confirmations\n "
2350+ " \" confirmations\" : n, (numeric) The number of confirmations\n "
2351+ " \" spendable\" : xxx, (bool) Whether we have the private keys to spend this output\n "
2352+ " \" solvable\" : xxx (bool) Whether we know how to spend this output, ignoring the lack of keys\n "
23512353 " }\n "
23522354 " ,...\n "
23532355 " ]\n "
@@ -2424,6 +2426,7 @@ UniValue listunspent(const UniValue& params, bool fHelp)
24242426 entry.push_back (Pair (" amount" ,ValueFromAmount (nValue)));
24252427 entry.push_back (Pair (" confirmations" ,out.nDepth ));
24262428 entry.push_back (Pair (" spendable" , out.fSpendable ));
2429+ entry.push_back (Pair (" solvable" , out.fSolvable ));
24272430 results.push_back (entry);
24282431 }
24292432
@@ -2445,6 +2448,7 @@ UniValue fundrawtransaction(const UniValue& params, bool fHelp)
24452448 " Note that all existing inputs must have their previous output transaction be in the wallet.\n "
24462449 " Note that all inputs selected must be of standard form and P2SH scripts must be\n "
24472450 " in the wallet using importaddress or addmultisigaddress (to calculate fees).\n "
2451+ " You can see whether this is the case by checking the \" solvable\" field in the listunspent output.\n "
24482452 " Only pay-to-pubkey, multisig, and P2SH versions thereof are currently supported for watch-only\n "
24492453 " \n Arguments:\n "
24502454 " 1. \" hexstring\" (string, required) The hex string of the raw transaction\n "
0 commit comments