Improve rpc docs of z_listlockunspent
This commit is contained in:
@@ -2653,12 +2653,15 @@ UniValue z_listlockunspent(const UniValue& params, bool fHelp, const CPubKey& my
|
|||||||
if (fHelp || params.size() > 0)
|
if (fHelp || params.size() > 0)
|
||||||
throw runtime_error(
|
throw runtime_error(
|
||||||
"z_listlockunspent\n"
|
"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"
|
"\nResult:\n"
|
||||||
"[\n"
|
"[\n"
|
||||||
" {\n"
|
" {\n"
|
||||||
" \"txid\" : \"transactionid\", (string) The transaction id locked\n"
|
" \"txid\" : \"transactionid\", (string) The transaction id locked\n"
|
||||||
" \"vout\" : n (numeric) The vout value\n"
|
" \"outindex\" : n (integer) The shielded output index\n"
|
||||||
" }\n"
|
" }\n"
|
||||||
" ,...\n"
|
" ,...\n"
|
||||||
"]\n"
|
"]\n"
|
||||||
@@ -2678,7 +2681,7 @@ UniValue z_listlockunspent(const UniValue& params, bool fHelp, const CPubKey& my
|
|||||||
UniValue o(UniValue::VOBJ);
|
UniValue o(UniValue::VOBJ);
|
||||||
|
|
||||||
o.push_back(Pair("txid", op.hash.GetHex()));
|
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);
|
ret.push_back(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user