Improve rpc docs of z_listlockunspent

This commit is contained in:
Duke
2025-08-23 06:15:33 -04:00
parent a555f64ad9
commit e421dfc6a5

View File

@@ -2653,12 +2653,15 @@ UniValue z_listlockunspent(const UniValue& params, bool fHelp, const CPubKey& my
if (fHelp || params.size() > 0)
throw runtime_error(
"z_listlockunspent\n"
"\nReturns list of temporarily unspendable outputs.\n"
"\nReturns list of temporarily locked shielded outputs which are currently unspendable. They are locked\n"
"\nbecause they are currently in the process of being spent by an operation such as z_sendmany/z_mergetoaddress/etc.\n"
"\nIf that operation succeeds, they will become spent. If it fails they will be unlocked and become\n"
"\nspendable again.\n"
"\nResult:\n"
"[\n"
" {\n"
" \"txid\" : \"transactionid\", (string) The transaction id locked\n"
" \"vout\" : n (numeric) The vout value\n"
" \"txid\" : \"transactionid\", (string) The transaction id locked\n"
" \"outindex\" : n (integer) The shielded output index\n"
" }\n"
" ,...\n"
"]\n"
@@ -2678,7 +2681,7 @@ UniValue z_listlockunspent(const UniValue& params, bool fHelp, const CPubKey& my
UniValue o(UniValue::VOBJ);
o.push_back(Pair("txid", op.hash.GetHex()));
o.push_back(Pair("n", (int) op.n));
o.push_back(Pair("outindex", (int) op.n));
ret.push_back(o);
}