diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index df0906b652..1c2606fcc8 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -2833,6 +2833,10 @@ UniValue listunspent(const JSONRPCRequest& request) if (out.tx->tx->vout[out.i].nAsset.IsCommitment()) { entry.push_back(Pair("assetcommitment", HexStr(out.tx->tx->vout[out.i].nAsset.vchCommitment))); } + const std::string label = gAssetsDir.GetLabel(assetid); + if (label != "") { + entry.push_back(Pair("assetlabel", label)); + } entry.push_back(Pair("confirmations", out.nDepth)); entry.push_back(Pair("spendable", out.fSpendable)); entry.push_back(Pair("solvable", out.fSolvable));