mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
show assetlabel in listunspent if set
This commit is contained in:
parent
6c4b6b9f04
commit
31bc28858d
1 changed files with 4 additions and 0 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue