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