diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 859349052..6eeafd012 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -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); }